コード例 #1
0
        private void AddBook()
        {
            var window = new EditBookWindow();

            window.ShowDialog();

            SetFilter(window);
        }
コード例 #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;
     }
 }