public SalaryCaclulationResultViewModel() { _salcalLogic = new SalaryCalculationLogic(); TheSalaryCalculation = new SalaryCalculation(); ThePeriod = new TimePeriod(); TheEmployee = new Employee(); EmployeeCollection = new ObservableCollection <Employee>(_salcalLogic.GetEmployee()); PeriodCollection = new ObservableCollection <TimePeriod>(_salcalLogic.GetPC()); SalaryCalculationCollection = new ObservableCollection <SalaryCalculation>(); }
public SalaryCalculationViewModel() { _dbContext = new SalDbContext(); _sallogic = new SalaryCalculationLogic(); TheEmployee = new Employee(); ThePeriod = new TimePeriod(); TheSalaryCalculation = new SalaryCalculation(); EmployeeCollection = new ObservableCollection <Employee>(_sallogic.GetEmployee()); PeriodCollection = new ObservableCollection <TimePeriod>(_sallogic.GetPC()); SalaryCalculationCollection = new ObservableCollection <SalaryCalculation>(_sallogic.GetSalaryWithPar(ThePeriod, NavigationYear)); }