Just trying to get some things straight.
I don't want to end up with some ravioli code so I want to get it straigt from the start.
This is what I want:
A project called CH7_9 has two cs files one called Form1.cs and the other RWDLog.cs
The From1.cs hold all things related to the UI such as the Form, buttons etc. and RWDLog.cs holds the code related to whatever it should do. It this case it should read,write or delete logging entry's in the eventlogs of windows(but that's not the issue).
How to organize this.???
I'm getting lost in private, public, methods, classes and CH7_9.Form1.x?!....
I think (know) it has to do with things like scope, accessibility of classes etc. but I can't find a decent text, including an example, that explains to me how to go about with this.
How to separate the UserInterface part from the business code part.
Any suggestions?
I don't want to end up with some ravioli code so I want to get it straigt from the start.
This is what I want:
A project called CH7_9 has two cs files one called Form1.cs and the other RWDLog.cs
The From1.cs hold all things related to the UI such as the Form, buttons etc. and RWDLog.cs holds the code related to whatever it should do. It this case it should read,write or delete logging entry's in the eventlogs of windows(but that's not the issue).
How to organize this.???
I'm getting lost in private, public, methods, classes and CH7_9.Form1.x?!....
I think (know) it has to do with things like scope, accessibility of classes etc. but I can't find a decent text, including an example, that explains to me how to go about with this.
How to separate the UserInterface part from the business code part.
Any suggestions?