Пример #1
0
        public EditorEmployeeWindow_VM(Action <Employee> layoffs, Action <Employee> update, Employee myEmployee)
        {
            Layoffs        = layoffs;
            MyEmployee     = myEmployee;
            UpdateThisPage = update;
            Controller     = new EditorEmployeeWindow_Controller(new Action <object>[] { UpdateEmployee, DeleteEmployee, CloseWindow, ChangeImage });

            Init();
        }
Пример #2
0
 public AddEmployeeWindow_VM(Action <Employee> addEmployeeMet)
 {
     MyEmployee     = new Employee();
     AddEmployeeMet = addEmployeeMet;
     Controller     = new EditorEmployeeWindow_Controller(new Action <object>[] { Add, null, Close, ChangeImage });
 }