public Employees() { InitializeComponent(); txtSearchEMP.Text = "*"; _employeesController = new EmployeesController(); LoadTable(_employeesController.GetAllUsers()); }
public EmployeesControllerTests() { var client = _factory.CreateClient(); var requester = new Requester(client) { RequestQueryParamSerializer = new ComplexTypeRequestQueryParamSerializer(), RequestBodySerializer = new FileContentRequestBodySerializer(), ResponseDeserializer = new FileContentResponseDeserializer() }; _controller = RestClient.For <IEmployeesController>(requester); }
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); }
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); }
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; }
private void SearchEMPs() { if (txtSearchEMP.Text.Length > 0) { _employeesController = new EmployeesController(); if (txtSearchEMP.Text == "*") { LoadTable(_employeesController.GetAllUsers()); } else { LoadTable(_employeesController.SearchEmployeeByName(txtSearchEMP.Text)); } } }
public SetBirthdayCommand(IEmployeesController employeesController) : base(employeesController) { }
public SetAddressCommand(IEmployeesController employeesController) : base(employeesController) { }
public void CanInitController() { IEmployeesController controller = CreateController(); Assert.IsNotNull(controller); }
public AddEmployeeCommand(IEmployeesController employeesController) : base(employeesController) { }
public SetManagerCommand(IEmployeesController employeesController) : base(employeesController) { }
public ExitCommand(IEmployeesController employeesController) : base(employeesController) { }
public Command(IEmployeesController employeesController) { this.employeesController = employeesController; }
public EmployeeInfoCommand(IEmployeesController employeesController) : base(employeesController) { }
public ListEmployeesOlderThanCommand(IEmployeesController employeesController) : base(employeesController) { }
public ManagerInfoCommand(IEmployeesController employeesController) : base(employeesController) { }