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(); }
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(); }
public void SetHeader(IEmployeesListView employeesListView) { this.HeaderPanel.Content = employeesListView; }
public void SetHeader(IEmployeesListView employeesListView) { SetHeaderCalled = true; }