MVP in Winforms

后端 未结 3 1122
春和景丽
春和景丽 2021-02-06 07:30

I\'m primarily from an ASP.Net background with some MVC. I\'ve also done a little Silverlight and MVVM, however I\'m now about to move into Winforms which I have very little exp

3条回答
  •  梦如初夏
    2021-02-06 08:16

    Try to find examples of Supervising Controller MVP flavor, I use that with WinForms, very successfully I would say. The entities support INotifyPropertyChanged, presenter binds them to the view, and presenter subscribes to the PropertyChanged event so that it knows when view changed something (dirty checking). View is responsible only for binding data, all other functionality is moved to the presenter.

提交回复
热议问题