示例#1
0
        private void AddBookButtonClick(object sender, RoutedEventArgs e)
        {
            AddModifyBookWindow addBookWindow = new AddModifyBookWindow();

            addBookWindow.Closing += AnyWindowClosing;
            addBookWindow.ShowDialog();
        }
示例#2
0
        private void ModifyButtonClick(object sender, RoutedEventArgs e)
        {
            AddModifyBookWindow addBookWindow = new AddModifyBookWindow((Book)BooksDataGrid.SelectedItem);

            addBookWindow.Closing += AnyWindowClosing;
            addBookWindow.ShowDialog();
        }