Пример #1
0
 private void AddLibrarianButton_Click(dynamic item)
 {
     LibrariansManagementWindow wnd = new LibrariansManagementWindow();
     if (wnd.ShowDialog() == true)
     {
         LibrariansControl.UpdateDataSync();
         librarian l = wnd.newLibrarian;
         LibrariansControl.SelectItem(l);
     }
 }
Пример #2
0
 private void EditLibrarianButton_Click(dynamic item)
 {
     try
     {
         if (item != null)
         {
             LibrariansManagementWindow wnd = new LibrariansManagementWindow(item);
             if (wnd.ShowDialog() == true)
             {
                 LibrariansControl.UpdateDataSync();
                 LibrariansControl.SelectItem(item);
             }
         }
     }
     catch (DBException ex)
     {
         Message.Show(ex.Message, MessageTypes.Error);
     }
 }