Пример #1
0
 private void AddFacultyButton_Click(dynamic item)
 {
     FacultyManagementWindow wnd = new FacultyManagementWindow();
     if (wnd.ShowDialog() == true)
     {
         FacultiesControl.UpdateDataSync();
         SearchFaculty(wnd.FacultyName);
     }
 }
Пример #2
0
 private void EditFacultyButton_Click(dynamic item)
 {
     try
     {
         if (item != null)
         {
             string name = item.FacultyName;
             int depCount = item.DepartmentsCount;
             int groupCount = item.GroupsCount;
             int stdCount = item.StudentsCount;
             FacultyManagementWindow wnd = new FacultyManagementWindow(name, depCount, groupCount, stdCount);
             if (wnd.ShowDialog() == true)
             {
                 FacultiesControl.UpdateDataSync();
                 SearchFaculty(wnd.FacultyName);
             }
         }
     }
     catch (DBException ex)
     {
         Message.Show(ex.Message, MessageTypes.Error);
     }
 }