I tend to implement user interface functionality using the rather self-documented void doSomething () methods, that is, if the user clicks this button, then perform this action, then enable this list, disable this button, etc. Is this a better approach? Is there a better template for general user interface control, i.e. how to control when the controls are on / off / etc. etc. depending on user input?
Often it seems to me that I'm leaning towards the โbig class that does everythingโ anti-pattern, as it seems to interact with the โmainโ class of the form. Often, even if I include private state variables in a class that were implemented using a relatively modular design, I still find that it grows so fast that it's ridiculous.
So can people give me good advice on creating a high-quality, testable, untied WinForms design without falling into these traps?
source share