Search code examples
c#.netwinformsuser-controlsmvp

User controls in winform application with mvp pattern


I'm developing winform application using MVP pattern. There are some user controls in my application which were created before. My question is: should I use MVP inside these controls? That is, do I have alter thier?


Solution

  • Given the http://webformsmvp.com/ implementation I'd say you should alter the existing controls and use MVP pattern inside.

    The reason is the communication among user-controls should be consistent. eg, do you want it to look like this:

    enter image description here

    Or more elegant and uniform:

    enter image description here