Beispiel #1
0
 public void Update()
 {
     _departmentsTable = _bd.departmentsSelectAll();
     _employeesTable   = _bd.employeesSelectAll();
     LoadEmployees();
     LoadDepartments();
 }
Beispiel #2
0
 public Company()
 {
     try
     {
         _bd = new DatabaseManipulations();
         _departmentsTable = _bd.departmentsSelectAll();
         _employeesTable   = _bd.employeesSelectAll();
         LoadEmployees();
         LoadDepartments();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }