public override void Run()
 {
     _repository?.Load();
     if (_repository is Data.Repository.EmployeeDefectRepository)
     {
         _view?.ShowReport(_dm, REPORT_DEFECT_MEMBER, REPORT_DEFECT_PATH, REPORT_DEFECT_PARAM);
     }
     else if (_repository is Data.Repository.EmployeeSalaryRepository)
     {
         _view?.ShowReport(_dm, REPORT_SALARY_MEMBER, REPORT_SALARY_PATH, REPORT_SALARY_PARAM);
     }
     _repository?.Close();
     base.Run();
 }
예제 #2
0
 public override void Run()
 {
     _repository?.Load();
     if (_repository is Data.Repository.EmployeeDefectRepository)
     {
         _view?.ShowChart(_dm, REPORT_DEFECT_MEMBER, "surname", "defect", System.Windows.Forms.DataVisualization.Charting.SeriesChartType.RangeBar);
     }
     else if (_repository is Data.Repository.EmployeeSalaryRepository)
     {
         _view?.ShowChart(_dm, REPORT_SALARY_MEMBER, "surname", "summa", System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Column);
     }
     _repository?.Close();
     base.Run();
 }