Пример #1
0
 public override void Run()
 {
     Data.Repository.EmployeeRepository repository = new Data.Repository.EmployeeRepository();
     _view?.ShowEmployee(repository.GetEmployee(KEY_DATA), KEY_DATA);
     _view?.ShowEmployeeSort(DATA_SORT);
     base.Run();
 }
Пример #2
0
 public override void Run()
 {
     Data.Repository.EmployeeRepository employee
         = new Data.Repository.EmployeeRepository(_view?.DataManager);
     employee.Load();
     Data.Repository.JobRepository job
         = new Data.Repository.JobRepository(_view?.DataManager);
     job.Load();
     base.Run();
 }
Пример #3
0
 private void OnSaveClose()
 {
     Data.Repository.EmployeeRepository employee
         = new Data.Repository.EmployeeRepository(_view?.DataManager);
     Data.Repository.JobRepository job
         = new Data.Repository.JobRepository(_view?.DataManager);
     employee.Save();
     job.Save();
     employee.Close();
     job.Close();
 }