I'm currently building a new application... it's still little, only 2 forms, but i wonder, what's the best way to separate my GUI code with my other code?
So basically, i want to create a group (in visual studio, easy) where all the views are located (forms). Normally, when you want a click event of a button you doubleclick on the button... however, the event is created in the same code file where the form is created. Isn't there a way to have some kind of separate file (controller?) for a view(s) where all events for that view are located?
I feel like it's going to be a mess if i continue like this... i know how to make separate classes for handling data (for example in my application, a mysql class), but i think i need a 'root' file which puts all the pieces (forms, events, etc) together.
This post has been edited by nbarten: 05 March 2012 - 08:41 AM