private void BTN_Synopsis_Click(object sender, RoutedEventArgs e) { AddBookSummary addSummaryDlg = new AddBookSummary(); addSummaryDlg.Closed += new EventHandler(GetSynopsisFromDialog); addSummaryDlg.Show(); }
private void GetSynopsisFromDialog(object sender, EventArgs e) { AddBookSummary addSummaryDlg = sender as AddBookSummary; if (!addSummaryDlg.Cancelled) { ThisBook.Summary = addSummaryDlg.Summary; } }
private void GetSynopsisFromDialog(object sender, EventArgs e) { AddBookSummary addSummaryDlg = sender as AddBookSummary; newBook.Summary = addSummaryDlg.Summary; }