I am creating an application on WinForms using the MVP pattern. I have a separate project for each form, the interfaces for the views are in a separate project. The presenters also have their own separate project. I had two questions:
-
How to properly structure a Winforms application using MVP
-
How, if necessary, to add a control to the form through the presenter (I have a main form and there is a registration button on it, clicking on this button opens the registration form as a registration form I use UserControl).
I created a presenter in the winforms class library, used the Action delegate as an event parameter, but I think this is not the right approach and there is a better solution