Exemple #1
0
        private void Btn_BooksAddBook_Click(object sender, RoutedEventArgs e)
        {
            AddBookDlg addBook = new AddBookDlg();

            addBook.Closed += new EventHandler(AddBook_FormClosed);
            addBook.Show();
        }
Exemple #2
0
 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();
     }
 }