Re: Application.Run and ModelViewPresenter Pattern
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 13 Oct 2007 20:15:04 -0400
Jeff,
I think you should, personally, as I have no clue what the IPresenter interface is, as it's not a part of the standard framework.
I imagine that the implementation of IPresenter.Execute is possibly calling the static Run method on the Application class (assuming that the implementation is the top level form), but without seeing any code or references, it's hard to say.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Jeff Jarrell" <jjarrel_NOSPAM@xxxxxxxxx> wrote in message news:OyrgKmdDIHA.3940@xxxxxxxxxxxxxxxxxxxxxxx
I am using the variation of a ModelViewPresenter pattern, now called Supervising Controller\ Passive view.
The essense of the pattern is that all of the logic is in the controller classe and the form has no logic. That make is easy to change or swap out the visual component for testing or branding purposes.
Application.Run() takes a FORM object. But in this pattern (my implementation) the view (form) is launched from the presenter.
It seems to work if I take out the Application.Run() and replace it with the
IPresenter.Execute(showModal)
But should I be looking deeper here? Am I losing something that will cause me grief later?
Thanks,
jeff
.
- Follow-Ups:
- Re: Application.Run and ModelViewPresenter Pattern
- From: Jeff Jarrell
- Re: Application.Run and ModelViewPresenter Pattern
- References:
- Application.Run and ModelViewPresenter Pattern
- From: Jeff Jarrell
- Application.Run and ModelViewPresenter Pattern
- Prev by Date: Re: run time Compiling
- Next by Date: Re: allowing a user to click on a progressbar
- Previous by thread: Application.Run and ModelViewPresenter Pattern
- Next by thread: Re: Application.Run and ModelViewPresenter Pattern
- Index(es):
Relevant Pages
|