Skip to content

Should the View rather not know about Presenter? #4

@noseratio

Description

@noseratio

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions