G
Gav
I have just started to rewrite my application using the Presenter First
Design Pattern to make sure my business logic is not in the Gui itself. I've
got the general idea but I'm a bit unsure as to how I should be launching a
dialogue window from my main application window.
What i have done is this in a nutshell. My main application window comprises
of a Model, Presenter and a View. The Popup window also has a Model,
Presenter and View. This is the process of what happens when the button is
clicked is as follows.
1. Button clicked, delegate function in presenter called from main View.
2. Method in main presenter calls a method in main model to open the window.
3. Method in main model instanciates popup view, popup model and binds with
popup presenter.
4. Method in main model calls method in popup model to open the window.
5. Method in popup model uses delegate function to call method in popup
presenter.
6. Method in popup presenter calls function in popup view to display the
window.
Can anybody tell me if what I am doing sounds right?
thanks
Gav
Design Pattern to make sure my business logic is not in the Gui itself. I've
got the general idea but I'm a bit unsure as to how I should be launching a
dialogue window from my main application window.
What i have done is this in a nutshell. My main application window comprises
of a Model, Presenter and a View. The Popup window also has a Model,
Presenter and View. This is the process of what happens when the button is
clicked is as follows.
1. Button clicked, delegate function in presenter called from main View.
2. Method in main presenter calls a method in main model to open the window.
3. Method in main model instanciates popup view, popup model and binds with
popup presenter.
4. Method in main model calls method in popup model to open the window.
5. Method in popup model uses delegate function to call method in popup
presenter.
6. Method in popup presenter calls function in popup view to display the
window.
Can anybody tell me if what I am doing sounds right?
thanks
Gav