private void AddBook()
        {
            var window = new EditBookWindow();

            window.ShowDialog();

            SetFilter(window);
        }
Ejemplo n.º 2
0
 private void EditButton_Click(object sender, RoutedEventArgs e)
 {
     if (booksListBox.SelectedItem != null)
     {
         Book           book           = (Book)booksListBox.SelectedItem;
         EditBookWindow editBookWindow = new EditBookWindow(database, book);
         editBookWindow.ShowDialog();
         booksListBox.SelectedItem = book;
     }
 }