private void SaveNewWorker(Worker worker)
 {
     workersModel.AddWorker(worker);                 //добавляем работника в модель
     SaveworkersModel();                             //сохраняем модель
     workerParametersView.Close();                   //закрываем форму
     workersView.RefreshList(workersModel.GetAll()); //обновляем списк работников в окне в окне
 }
        public WorkersController()
        {
            Model = new WorkersModel();

            AddWorkerCommand    = new DelegateCommand(Model.WorkerToAdd, (_) => Model.AddWorker(), e => 0 == 0);
            DeleteWorkerCommand = new DelegateCommand(Model.SelectedWorker, (_) => Model.DeleteWorker(), e => 0 == 0);
            EditWorkerCommand   = new DelegateCommand(Model.SelectedWorker, (_) => Model.EditWorker(), e => 0 == 0);
        }