Beispiel #1
0
 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());
 }
Beispiel #2
0
 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());
 }
Beispiel #3
0
        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());
        }