In mvc you separate view from controller. How do you do that in C#?
Many people define an interface for a controller but isn't controller is specific to a form(gui) which all controller contains is handle events from gui controls(button , treeviews, textboxes etc..) which you don't know until you code the form.
So is there a point in having an interface for a controller where that controller is tightly tied to a specific form.
Having said that, many people say that controller can be used with many forms - how? as i'm aware of is controller tied to specific gui controls (like is said above).
Basically what i think a controller is for handling gui events and that is depending on gui controls. am i correct?
If not, what is the correct way to do it? what goes inside interface for controller?
thanks in advance
Many people define an interface for a controller but isn't controller is specific to a form(gui) which all controller contains is handle events from gui controls(button , treeviews, textboxes etc..) which you don't know until you code the form.
So is there a point in having an interface for a controller where that controller is tightly tied to a specific form.
Having said that, many people say that controller can be used with many forms - how? as i'm aware of is controller tied to specific gui controls (like is said above).
Basically what i think a controller is for handling gui events and that is depending on gui controls. am i correct?
If not, what is the correct way to do it? what goes inside interface for controller?
thanks in advance
Comment