Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Program Structure and File Type Advice Pin
Jacob Barton17-Apr-13 1:35
Jacob Barton17-Apr-13 1:35 
GeneralRe: C# Program Structure and File Type Advice Pin
Mycroft Holmes17-Apr-13 3:29
professionalMycroft Holmes17-Apr-13 3:29 
AnswerRe: C# Program Structure and File Type Advice Pin
Pete O'Hanlon17-Apr-13 1:55
mvePete O'Hanlon17-Apr-13 1:55 
GeneralRe: C# Program Structure and File Type Advice Pin
Jacob Barton17-Apr-13 2:23
Jacob Barton17-Apr-13 2:23 
GeneralRe: C# Program Structure and File Type Advice Pin
Pete O'Hanlon17-Apr-13 2:26
mvePete O'Hanlon17-Apr-13 2:26 
AnswerRe: C# Program Structure and File Type Advice Pin
Orjan Westin17-Apr-13 2:34
professionalOrjan Westin17-Apr-13 2:34 
GeneralRe: C# Program Structure and File Type Advice Pin
Jacob Barton17-Apr-13 3:06
Jacob Barton17-Apr-13 3:06 
AnswerRe: C# Program Structure and File Type Advice Pin
Jasmine250117-Apr-13 5:58
Jasmine250117-Apr-13 5:58 
What you are looking for is called "choosing a design pattern" and in most cases, if you use a known design pattern, it saves time and frustration. For this project, I would suggest MVC - Model-View-Controller as your design pattern. It is an old design pattern, been around since the 60s, but it's enjoying a little bit of renaissance because Microsoft recently published a framework to help implement MVC in web sites... so, many programmers are just discovering this design pattern right now and you'll be able to find lots of blogs and information about it. Keep in mind that while the main architecture will be MVC, you will be using other design patterns at lower levels. Knowing design patterns can help with the decision you're faced with - namely, how do I start?

So here's how it would break down for your app....
Model - this is where you keep all the code that describes the real world. So, how to calculate stresses, how to store the data, all your component objects. Many developers think of the model as "only the database" but it's really supposed to be a model. Use this layer to keep code and data that represents a model of the real-world situation.

View - this is obviously the visual component. It takes model data passed to it by the controller, and renders the model in some visually compelling way for the user.

Controller - This is where the interface logic resides, and it does exert control over the view and the model - it passes data to the model for updating, and retrieves data to put into the view.

SO... can you see why, for an engineering application, this might be good? What if, for example, you wanted to web-enable your windows app? You don't have to do a complete re-write, you only have to make a web-based View.

Here's some articles...
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller[^]

http://en.wikipedia.org/wiki/Software_design_pattern[^]
AnswerRe: C# Program Structure and File Type Advice Pin
Gerry Schmitz17-Apr-13 6:10
mveGerry Schmitz17-Apr-13 6:10 
AnswerRe: C# Program Structure and File Type Advice Pin
jschell17-Apr-13 9:16
jschell17-Apr-13 9:16 
AnswerRe: C# Program Structure and File Type Advice Pin
Jacob Barton17-Apr-13 17:03
Jacob Barton17-Apr-13 17:03 
GeneralRe: C# Program Structure and File Type Advice Pin
Orjan Westin17-Apr-13 23:43
professionalOrjan Westin17-Apr-13 23:43 
GeneralRe: C# Program Structure and File Type Advice Pin
Jasmine250118-Apr-13 6:31
Jasmine250118-Apr-13 6:31 
GeneralRe: C# Program Structure and File Type Advice Pin
Gerry Schmitz18-Apr-13 11:15
mveGerry Schmitz18-Apr-13 11:15 
AnswerRe: C# Program Structure and File Type Advice Pin
GuyThiebaut18-Apr-13 0:27
professionalGuyThiebaut18-Apr-13 0:27 
AnswerRe: C# Program Structure and File Type Advice Pin
Clifford Nelson18-Apr-13 5:18
Clifford Nelson18-Apr-13 5:18 
AnswerRe: C# Program Structure and File Type Advice Pin
Jacob Barton19-Apr-13 2:57
Jacob Barton19-Apr-13 2:57 
QuestionThe SetAttribute does not set attribute Pin
Meysam Toluie16-Apr-13 20:22
Meysam Toluie16-Apr-13 20:22 
AnswerRe: The SetAttribute does not set attribute Pin
Jasmine250117-Apr-13 5:45
Jasmine250117-Apr-13 5:45 
GeneralRe: The SetAttribute does not set attribute Pin
Meysam Toluie18-Apr-13 1:30
Meysam Toluie18-Apr-13 1:30 
GeneralRe: The SetAttribute does not set attribute Pin
Jasmine250118-Apr-13 6:04
Jasmine250118-Apr-13 6:04 
GeneralRe: The SetAttribute does not set attribute Pin
Meysam Toluie20-Apr-13 3:02
Meysam Toluie20-Apr-13 3:02 
GeneralRe: The SetAttribute does not set attribute Pin
Jasmine250122-Apr-13 5:24
Jasmine250122-Apr-13 5:24 
AnswerRe: The SetAttribute does not set attribute Pin
OriginalGriff17-Apr-13 8:41
mveOriginalGriff17-Apr-13 8:41 
GeneralRe: The SetAttribute does not set attribute Pin
Meysam Toluie17-Apr-13 19:35
Meysam Toluie17-Apr-13 19:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.