//--- "Report..." button clicked. private void btnReport_Click(object sender, EventArgs e) { // Generate a report and send it to the report dialog string report = GenerateReport(); ReportForm rf = new ReportForm(report); rf.ShowDialog(); }
//--- "Report" button clicked. private void btnReport_Click(object sender, EventArgs e) { ReportForm rf = new ReportForm(GenerateReport()); rf.ShowDialog(); }