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