First of all, many thanks Mart for putting this repo together, very useful.
The comment I have, should the View rather not know anything about Presenter? Here you have a reference to CustomerPresenter inside ICustomerView:
|
Presenter.CustomerPresenter Presenter { set; } |
I'd expect to have no tight coupling here. Rather, some sort of event sources or observables that the Presenter would be subscribing to. Something similar to what Mark Heath is doing in his related article:
interface ICustomerView
{
// ...
int SelectedCustomer { get; set; }
// ...
event EventHandler SelectedCustomerChanged;
}
First of all, many thanks Mart for putting this repo together, very useful.
The comment I have, should the View rather not know anything about Presenter? Here you have a reference to
CustomerPresenterinsideICustomerView:winforms-mvp/WinFormsMVP/WinFormsMVP/View/ICustomerView.cs
Line 17 in 7470a9e
I'd expect to have no tight coupling here. Rather, some sort of event sources or observables that the Presenter would be subscribing to. Something similar to what Mark Heath is doing in his related article: