Hi, lets say i have a program that will convert a lot of strings in intengers
should i code all the process in the same class of the form or should i do it in another class ? whats the diference ?? its more efficient ? or what '
Printable View
Hi, lets say i have a program that will convert a lot of strings in intengers
should i code all the process in the same class of the form or should i do it in another class ? whats the diference ?? its more efficient ? or what '
Thread moved from Application Deployment forum, which is for questions about installing/distributing your software
A form is a presentation element and string processing has nothing to do with presentation.
All you form should do is direct and display input and output. This input/output should be sent/received from a "Business layer" Which handles the data and does what processing on the data that is needed. If you have a database that would receive its data from the "business Layer" and not the UI. The "business layer" can be made up of many classes it doesn't need to be one big one that handles everything. Like this:
UI
-------------------------------
Classes that process information
-------------------------------
Databases/Files
This way its easier to make changes to each layer without rewriting lots of code.