public AbsenceRegisterView() { InitializeComponent(); absenceControl = new AbsenceControl(); employeeControl = new EmployeeControl(); justificationControl = new JustificationControl(); absenceViewControl = new AbsenceViewControl(); DataContext = absenceViewControl; fillCBEmployee(); fillCBJustification(); }
public NewAbsenceModal(Employee employee) { InitializeComponent(); DataContext = new AbsenceViewControl(); absenceControl = new AbsenceControl(); employeeControl = new EmployeeControl(); justificationControl = new JustificationControl(); this.employee = employee; fillCBEmployee(); fillCBJustification(); }