private void dataExportReportToolStripMenuItem_Click(object sender, EventArgs e) { //Check if the file exist if (!File.Exists(man.ReportFileName)) { MessageBox.Show("File not found!"); return; } DataExportReportViewer derv = new DataExportReportViewer(man.ReportFileName); derv.Show(); return; }
/// <summary> /// Handles the Click event of the dataExportReportViewerToolStripMenuItem control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void dataExportReportViewerToolStripMenuItem_Click(object sender, EventArgs e) { DataExportReportViewer derv = new DataExportReportViewer(); derv.Show(); }