示例#1
0
 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);
        }
示例#3
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);
        }
示例#4
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);
        }
示例#5
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;
            
        }
示例#7
0
        private void SearchEMPs()
        {
            if (txtSearchEMP.Text.Length > 0)
            {
                _employeesController = new EmployeesController();

                if (txtSearchEMP.Text == "*")
                {
                    LoadTable(_employeesController.GetAllUsers());
                }
                else
                {
                    LoadTable(_employeesController.SearchEmployeeByName(txtSearchEMP.Text));
                }
            }
        }
示例#8
0
 public SetBirthdayCommand(IEmployeesController employeesController)
     : base(employeesController)
 {
 }
示例#9
0
 public SetAddressCommand(IEmployeesController employeesController)
     : base(employeesController)
 {
 }
示例#10
0
        public void CanInitController()
        {
            IEmployeesController controller = CreateController();

            Assert.IsNotNull(controller);
        }
示例#11
0
 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)
 {
 }
示例#16
0
 public ListEmployeesOlderThanCommand(IEmployeesController employeesController)
     : base(employeesController)
 {
 }
示例#17
0
 public ManagerInfoCommand(IEmployeesController employeesController)
     : base(employeesController)
 {
 }