private void showBooksReportToolStripMenuItem_Click(object sender, EventArgs e) { if (toEditAuthor != null) { var booksAuthorsReportForm = new BooksAuthorsReportForm(toEditAuthor); booksAuthorsReportForm.ShowDialog(); } }
private void showBooksReportToolStripMenuItem_Click(object sender, EventArgs e) { var booksAuthorsReportForm = new BooksAuthorsReportForm(publishersDataGridView.CurrentCell.OwningRow.DataBoundItem as PublishingHouses); booksAuthorsReportForm.ShowDialog(); }