Пример #1
0
 private void LibrarianEditButton_Click(object sender, RoutedEventArgs e)
 {
     if (DataGridLibrarian.SelectedItems.Count > 0)
     {
         Users        user         = (Users)DataGridLibrarian.SelectedItems[0];
         AddingWindow addingWindow = new AddingWindow(user, "Библиотекарь");
         addingWindow.Show();
     }
 }
Пример #2
0
 private void ReaderEditButton_Click(object sender, RoutedEventArgs e)
 {
     if (DataGridReader.SelectedItems.Count > 0)
     {
         Users        user         = (Users)DataGridReader.SelectedItems[0];
         AddingWindow addingWindow = new AddingWindow(user, "Читатель");
         addingWindow.Show();
     }
 }
Пример #3
0
        private void AddingLibrarianButton_Click(object sender, RoutedEventArgs e)
        {
            AddingWindow addingWindow = new AddingWindow("Библиотекарь");

            addingWindow.Show();
        }
Пример #4
0
        private void AddingReaderButton_Click(object sender, RoutedEventArgs e)
        {
            AddingWindow addingWindow = new AddingWindow("Читатель");

            addingWindow.Show();
        }