You must keep in mind the passive presentation pattern. In the Supervising Controller template, the view is associated with the model for synchronization.
. . , , Main. , #.
static void Main(string[] args)
{
Model model = new Model();
View view = new View();
Presenter presenter = new Presenter(view, model);
}
public Presenter(IView view, IModel model)
{
this.View = view;
this.View.Presenter = this;
this.Model = model;
}
, . , , , , IoC . IoC , .