private void Btn_BooksAddBook_Click(object sender, RoutedEventArgs e) { AddBookDlg addBook = new AddBookDlg(); addBook.Closed += new EventHandler(AddBook_FormClosed); addBook.Show(); }
private void Btn_AuthorsAddBook_Click(object sender, RoutedEventArgs e) { if (_selectedAuthor != null) { AddBookDlg addBookDlg = new AddBookDlg(); addBookDlg.SelectedAuthor = _selectedAuthor; addBookDlg.Show(); } else { AddBookDlg addBookDlg = new AddBookDlg(); addBookDlg.Show(); } }