I have a Windows Forms application written in C# and one of the forms has an enourmous amount of code with it. I have made extensive use of classes to keep the forms code to a minimum, but because the form has a number of tab pages and hundreds of controls and datagrids, etc., the code on the form itself is still extensive.
Is there any way to break this code into more manageable and smaller items, perhaps one item in the solution for each tab page, whilst keeping all the code in the same scope?
If your looking for better readability and maintainance without moving the code around too much, you could use:
This would allow you to minimise parts of the code you are not interested in while making changes to a certain tab. It’s not perfect, but it may help.