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(); } }
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(); } }
private void AddingLibrarianButton_Click(object sender, RoutedEventArgs e) { AddingWindow addingWindow = new AddingWindow("Библиотекарь"); addingWindow.Show(); }
private void AddingReaderButton_Click(object sender, RoutedEventArgs e) { AddingWindow addingWindow = new AddingWindow("Читатель"); addingWindow.Show(); }