Exemplo n.º 1
0
 private void LoadDataStaff()
 {
     if (staff.Type == 2)
     {
         selectStaffTable          = scheduleBus.getStaffInFaculty(staff.Faculty);
         selectStaffView           = new DataView(selectStaffTable);
         dgvSelectStaff.DataSource = selectStaffView;
     }
     else
     {
         selectStaffTable          = scheduleBus.getStaffInSubject(staff.ID);
         selectStaffView           = new DataView(selectStaffTable);
         dgvSelectStaff.DataSource = selectStaffView;
     }
 }