Пример #1
0
        public ApplicationEmployeeControl(IMainWindow view, IAddEmployee add)
        {
            _view = view;
            _add  = add;
            _view.DeleteSelectItemSource += DeleteSelectItemSource;

            _add.AddEmployeeToData += AddEmployeeInItemSource;

            //Test Data
            Employees = new ObservableCollection <Employee>
            {
                new Employee {
                    Name = "Иван", Place = "Руководитель отдела разработки", Age = 36, SetToWork = true
                },
                new Employee {
                    Name = "Николай", Place = "Ведущий разработчик", Age = 31
                },
                new Employee {
                    Name = "Евгений", Place = "Разработчик", Age = 30
                },
                new Employee {
                    Name = "Константин", Place = "Разработчик", Age = 27
                },
                new Employee {
                    Name = "Сергей", Place = "Стажер", Age = 23, SetToWork = true
                },
            };
        }
Пример #2
0
 public AttachEmployee(ILoadDataSender lastScreen, TeamDetailsVM teamDetailsVM)
 {
     InitializeComponent();
     _lastScreen = lastScreen;
     _addEmployeeVM = new AddEmployeeToTheTeamVM(this, teamDetailsVM, this);
     DataContext = _addEmployeeVM;
     fillCheckboxList();
 }
Пример #3
0
 public AttachEmployee(ILoadDataSender lastScreen, ProjectModuleEditVM projectModuleEditVM)
 {
     InitializeComponent();
     _lastScreen = lastScreen;
     _addEmployeeVM = new AddEmployeeToTheProjectVM(this, projectModuleEditVM, this);
     DataContext = _addEmployeeVM;
     fillCheckboxList();
 }
Пример #4
0
 public EmployeesController(
     IGetEmployee getEmployee,
     IListEmployees listEmployees,
     IAddEmployee addEmployee,
     IUpdateEmployee updateEmployee,
     IDeleteEmployee deleteEmployee)
 {
     _getEmployee    = getEmployee;
     _listEmployees  = listEmployees;
     _addEmployee    = addEmployee;
     _updateEmployee = updateEmployee;
     _deleteEmployee = deleteEmployee;
 }