Re: Application.Run and ModelViewPresenter Pattern

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: Advice on landing better
    ... Stay the hell away from flight sims for this sort of problem. ... I use MS Flight Simulator for instrument work, ... imagine the entire flight from the preflight through the push ... Imagine the pattern... ...
    (rec.aviation.student)
  • Re: SAT and Theological Rationalism
    ... is feeling by observing what happens to them. ... in fact they are feelings generated when you _imagine_ ... If the connection to the limbic system is cut then it ... Conditioning can weaken or strengthen the pattern effect ...
    (comp.ai.philosophy)
  • Re: Programming languages
    ... which all followed the same general pattern. ... One could almost imagine that the rage being expressed during the ... plausible mental model of the person who bothers perpetrating this nonsense. ...
    (comp.lang.c)
  • Re: If all midair collisions were eliminated...
    ... school planes in the pattern as well as NORDO CAF planes working the ... imagine my ground school teacher's story of a total electrical failure on his first cross-country solo. ...
    (rec.aviation.homebuilt)