Ejemplo n.º 1
0
 /// <summary>
 /// Deleting department from employee
 /// </summary>
 public void DeleteDepartmentFromEMP()
 {
     if (view.ListViewEmp.SelectedIndex != -1 && view.ComboBoxDepartmentListEMP.SelectedIndex != -1)
     {
         model.DelDepFromEmp(view.ListViewEmp.SelectedIndex, view.ComboBoxDepartmentListEMP.SelectedIndex);
         RefreshDepartmentsListOnEMP();
     }
     else
     {
         MessageBox.Show("Have to be selected Employee from list and Deparment from combo box at the bottom");
     }
 }