private void BTAddBooks_Click(object sender, RoutedEventArgs e) { AddBooks ab = new AddBooks(); ab.ShowDialog(); Update(); }
private void BTAddBooks_Click(object sender, RoutedEventArgs e) { Books b = new Books(); AddBooks ab = new AddBooks(b, 1, "Добавить"); ab.ShowDialog(); Update(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { Books book = DGBook.SelectedItem as Books; if (book != null) { AddBooks ab = new AddBooks(book, 2, "Редактировать"); ab.ShowDialog(); Update(); } }