Exemple #1
0
        public EmployeesPresenter(
            IEmployeesView view,
            IEmployeesListPresenter listPresenter,
            IEmployeesController employeeController)
        {
            this.View          = view;
            this.listPresenter = listPresenter;
            this.listPresenter.EmployeeSelected += new EventHandler <DataEventArgs <BusinessEntities.Employee> >(this.OnEmployeeSelected);
            this.employeeController              = employeeController;

            View.SetHeader(listPresenter.View);
        }
Exemple #2
0
        public EmployeesPresenter(
            IEmployeesView view,
            IEmployeesListPresenter listPresenter,
            IEmployeesController employeeController)
        {
            this.View = view;
            this.listPresenter = listPresenter;
            this.listPresenter.EmployeeSelected += new EventHandler<DataEventArgs<BusinessEntities.Employee>>(this.OnEmployeeSelected);
            this.employeeController = employeeController;

            View.SetHeader(listPresenter.View);
        }
Exemple #3
0
        public EmployeesPresenter(
            IEmployeesView view,
            IEmployeesController employeeController)
        {
            this.View = view;
            this.employeeController = employeeController;

            this.model = new EmployeesPresentationModel();
            this.model.PropertyChanged += Model_PropertyChanged;

            this.View.Model = model;
        }
        public EmployeesPresenter(
            IEmployeesView view,
            IEmployeesController employeeController)
        {
            this.View = view;
            this.employeeController = employeeController;

            this.model = new EmployeesPresentationModel();
            this.model.PropertyChanged += Model_PropertyChanged;

            this.View.Model = model;
            
        }
Exemple #5
0
 public EmployeesPresenter(IEmployeesView view, IRepository <Employee> model)
 {
     this.view  = view;
     this.model = model;
 }