Ejemplo n.º 1
0
 private void AddDepartmentButton_Click(dynamic item)
 {
     DepartmentsManagementWindow wnd = new DepartmentsManagementWindow();
     if (wnd.ShowDialog() == true)
     {
         DepartmentsControl.UpdateDataSync();
         SearchDepartment(wnd.DepartmentName);
     }
 }
Ejemplo n.º 2
0
 private void EditDepartmentButton_Click(dynamic item)
 {
     if (item != null)
     {
         string name = item.DepartmentName;
         string fname = item.FacultyName;
         int gcount = item.GroupsCount;
         int scount = item.StudentsCount;
         DepartmentsManagementWindow wnd = new DepartmentsManagementWindow(name, fname, gcount, scount);
         if (wnd.ShowDialog() == true)
         {
             DepartmentsControl.UpdateDataSync();
             SearchDepartment(wnd.DepartmentName);
         }
     }
 }