P
-pb-
Hi,
We are developing an windows application and decided to use the MVC
design pattern. We decided to use windows application due to varuous
business processes which cannot be implemented in web very easily
Now my problem is very specific.
We have a main screen which shows some data called Main view. We have a
controller calss which holds a reference to the object of Main view and
underlying service. Now we want to save the details entered on the
screen to database, but before adding to database, we show a screen and
allows user to select to save on exiting one or new one and lot of
other stuff.
My questions are
1 - do we required to have a sepearate controller for each view. In our
case, MainController and SaveController or we should have only one
controller i.r. MainController.
2 - If only one controller is used and if that controoler is holding
object reference of Main view, how other view can be handled.
3 - If 2 contoller is used then how to pass the data from Main view to
Save view.
At the moment our project become so complex as v hv to pass the
MainController evertime between view and each view hv has its own
controller.
Any suggestion is appriciated
We are developing an windows application and decided to use the MVC
design pattern. We decided to use windows application due to varuous
business processes which cannot be implemented in web very easily
Now my problem is very specific.
We have a main screen which shows some data called Main view. We have a
controller calss which holds a reference to the object of Main view and
underlying service. Now we want to save the details entered on the
screen to database, but before adding to database, we show a screen and
allows user to select to save on exiting one or new one and lot of
other stuff.
My questions are
1 - do we required to have a sepearate controller for each view. In our
case, MainController and SaveController or we should have only one
controller i.r. MainController.
2 - If only one controller is used and if that controoler is holding
object reference of Main view, how other view can be handled.
3 - If 2 contoller is used then how to pass the data from Main view to
Save view.
At the moment our project become so complex as v hv to pass the
MainController evertime between view and each view hv has its own
controller.
Any suggestion is appriciated