Link to home
Start Free TrialLog in
Avatar of Anas TINA
Anas TINA

asked on

Model View Presenter Pattern (MVP) - View Load Event

I am designed my Windows Forms application using MVP pattern as follows:

View: is a passive windows forms (or user control) which expose its events to the public.
Presenter: accepts in their constructor an instance of the related view (using Dependency Injection DI ) and subscribe to the events in the view for handling.

Everything works fine except view load event; which fire before the presenter subscribes to the event.
Avatar of it_saige
it_saige
Flag of United States of America image

Can you provide an example which emulates the behavior you are experiencing?

-saige-
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.