Class Libraries
-
Hi everyone I'm still quite new to Object Oriented Programming, so please forgive me for this newbie question. I'm building an application with a main form and a couple of sub-forms. There is also an assocated service that goes with the application. - Should the class library only code that doesn't deal directly with processing events on the forms, or just methods that are used more than once? - Should each form then have its own class library, or should I create a single class library for the whole application and the service to use? - Or should I be creating separate class libraries based on their usage to enable later reuse of the class library? I've trawled through MSDN and found some best practices but they don't mention what to do in the above scenarios... I gotta say I'm leaning towards the last point here, but I really don't know... :( Any help you gurus can provide would be greatly appreciated! Cheers Paul
One day I want to be a code monkey. Right now, I'm more like a code amoeba...
-
Hi everyone I'm still quite new to Object Oriented Programming, so please forgive me for this newbie question. I'm building an application with a main form and a couple of sub-forms. There is also an assocated service that goes with the application. - Should the class library only code that doesn't deal directly with processing events on the forms, or just methods that are used more than once? - Should each form then have its own class library, or should I create a single class library for the whole application and the service to use? - Or should I be creating separate class libraries based on their usage to enable later reuse of the class library? I've trawled through MSDN and found some best practices but they don't mention what to do in the above scenarios... I gotta say I'm leaning towards the last point here, but I really don't know... :( Any help you gurus can provide would be greatly appreciated! Cheers Paul
One day I want to be a code monkey. Right now, I'm more like a code amoeba...
-
Ok, thanks Ravi. But what about methods purely related to doing something related to the form, but doesn't fall into a particular category? Should I be keeping those with the form class's code? Cheers Paul
One day I want to be a code monkey. Right now, I'm more like a code amoeba...
-
Ok, thanks Ravi. But what about methods purely related to doing something related to the form, but doesn't fall into a particular category? Should I be keeping those with the form class's code? Cheers Paul
One day I want to be a code monkey. Right now, I'm more like a code amoeba...
-