public MockEmployeesListPresenter()
 {
     View = new MockEmployeesListView();
     View.EmployeeSelected += delegate(object sender, DataEventArgs<BusinessEntities.Employee> e)
     {
         EmployeeSelected(sender, e);
     };
 }
 public MockEmployeesListPresenter()
 {
     View = new MockEmployeesListView();
     View.EmployeeSelected += delegate(object sender, DataEventArgs <BusinessEntities.Employee> e)
     {
         EmployeeSelected(sender, e);
     };
 }
 public EmployeesListPresenter(IEmployeesListView view,
     IEmployeeService employeeService)
 {
     this.View = view;
     this.View.EmployeeSelected += delegate(object sender, DataEventArgs<BusinessEntities.Employee> e)
     {
         EmployeeSelected(sender, e);
     };
     view.Model = employeeService.RetrieveEmployees();
 }
Exemple #4
0
 public EmployeesListPresenter(IEmployeesListView view,
                               IEmployeeService employeeService)
 {
     this.View = view;
     this.View.EmployeeSelected += delegate(object sender, DataEventArgs <BusinessEntities.Employee> e)
     {
         EmployeeSelected(sender, e);
     };
     view.Model = employeeService.RetrieveEmployees();
 }
 public EmployeesListPresenter(IEmployeesListView view,
     IEmployeeService employeeService)
 {
     this.View = view;
     this.View.EmployeeSelected += delegate(object sender, DataEventArgs<BusinessEntities.Employee> e)
     {
         // Update the value of the regioncontext. This regioncontext is two way bound to the 
         // SelectedEmployee property of the EmployeePresentationModel. So the control that's hosting the region
         // (EmployeesView) will get notified of the selection change through databinding. 
         this.View.ObservableRegionContext.Value = e.Value;
     };
     view.Model = employeeService.RetrieveEmployees();
 }
 public EmployeesListPresenter(IEmployeesListView view,
                               IEmployeeService employeeService)
 {
     this.View = view;
     this.View.EmployeeSelected += delegate(object sender, DataEventArgs <BusinessEntities.Employee> e)
     {
         // Update the value of the regioncontext. This regioncontext is two way bound to the
         // SelectedEmployee property of the EmployeePresentationModel. So the control that's hosting the region
         // (EmployeesView) will get notified of the selection change through databinding.
         this.View.ObservableRegionContext.Value = e.Value;
     };
     view.Model = employeeService.RetrieveEmployees();
 }
Exemple #7
0
 public void SetHeader(IEmployeesListView employeesListView)
 {
     this.HeaderPanel.Content = employeesListView;
 }
Exemple #8
0
 public void SetHeader(IEmployeesListView employeesListView)
 {
     SetHeaderCalled = true;
 }
Exemple #9
0
 public void SetHeader(IEmployeesListView employeesListView)
 {
     SetHeaderCalled = true;
 }