I am developing a rather large Windows app for my company. Part of the functionality of this app is pretty detailed. I have a design that is very feasible and user-friendly, however, I'm not sure what the best approach is to building it in the code-behind.
Here is the scenario.
A groupbox of one of more checkboxes are dynamically generated based on an Item Number being entered. Potentially, there could be up to 12 checkboxes which represent "Channels" (electronic load sensor device contains one or more channels). Based on how many channels there are, I have a tab control that will contain a tab for each channel, hence, possibly 12 tabs. On each tab there are 77 various controls, i.e. Labels, TextBoxes, ComboBoxes, DataGridViews, GroupBoxes, etc.
What I'm deliberating on is whether to create a UserControl that contains each of the 40-50 controls and then for each "Channel" Tab that is generated, dynamically insert this UC onto the tab. This is what I'm thinking. I'm not sure if there is a better way to do this even though there is generally more than one way of accomplishing a task.
Performance is a major issue here also.