private void m_exportMenuItem_Click(object sender, EventArgs e) { using (var dlg = new ExportDlg(m_viewModel)) { dlg.ShowDialog(this); if (dlg.DialogResult == DialogResult.OK) { DialogResult = DialogResult.OK; } } }
private void m_exportToSpreadsheetMenuItem_Click(object sender, EventArgs e) { using (var dlg = new ExportDlg(m_viewModel)) { MainForm.LogDialogDisplay(dlg); dlg.ShowDialog(this); if (dlg.DialogResult == DialogResult.OK) { DialogResult = DialogResult.OK; } } }