private void Button_Click(object sender, RoutedEventArgs e) { var window = new AddBookWindow(); if (window.ShowDialog() ?? false) { UpdateBooks(); libraryBookList.UnselectAll(); SeeBookInformationButton.Visibility = Visibility.Collapsed; CheckBorroweBooksButton.Visibility = Visibility.Collapsed; } }
private void AddButton_Click(object sender, RoutedEventArgs e) { AddBookWindow addBookWindow = new AddBookWindow(database); addBookWindow.ShowDialog(); }