Пример #1
0
        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;
            }
        }
Пример #2
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            AddBookWindow addBookWindow = new AddBookWindow(database);

            addBookWindow.ShowDialog();
        }