public ProjectsPresenter(IProjectsView projectsView, IProjectsModel projectsModel) { _view = projectsView; _view.ProjectUpdated += view_ProjectUpdated; _view.SelectionChanged += view_SelectionChanged; _view.DetailsUpdated += view_DetailsUpdated; _model = projectsModel; _model.ProjectUpdated += model_ProjectUpdated; _view.LoadProjects(_model.GetProjects()); }
public ProjectsPresener(IProjectsView projectsView, IProjectsModel projectsModel) { _view = projectsView; _view.ProjectUpdated += ViewProjectUpdated; _view.SelectionChanged += ViewSelectionChanged; _view.DetailsUpdated += ViewDetailsUpdated; _model = projectsModel; _model.ProjectUpdated += ModelProjectUpdated; _view.LoadProjects(_model.GetProjects()); }