Пример #1
0
 public NewEmployeeWindow()
 {
     empRepo    = new EmployeeRepository();
     viewHelper = new ViewGeneratorHelper(empRepo);
     InitializeComponent();
     InitializeState();
 }
Пример #2
0
 public AnalyticsWindow()
 {
     empRepo    = new EmployeeRepository();
     anaRepo    = new AnalyticsRepository();
     viewHelper = new ViewGeneratorHelper(empRepo);
     InitializeComponent();
     PopulateDate();
 }
Пример #3
0
 public MainWindow()
 {
     empRepo    = new EmployeeRepository();
     viewHelper = new ViewGeneratorHelper(empRepo);
     InitializeComponent();
     InitializeState();
     initializationCompleted = true;
 }
Пример #4
0
 public NewHistoryWindow(EmployeeDC emp)
 {
     empRepo    = new EmployeeRepository();
     viewHelper = new ViewGeneratorHelper(empRepo);
     InitializeComponent();
     InitializeState();
     this.currentEmployeeId     = emp.Id;
     this.title.SelectedItem    = emp.CurrentTitle;
     this.level.SelectedItem    = emp.CurrentLevel;
     this.salary.Value          = emp.CurrentSalary;
     this.bonus.Value           = 0;
     this.manager.SelectedValue = emp.CurrentManager.Id;
 }