private void btnSave_Click(object sender, EventArgs e) { if (OFDReports.FileName != "") { AGRDReports.Post(); Report.SaveToFile(OFDReports.FileName); } }
private void btnSaveas_Click(object sender, EventArgs e) { SFDReports.FileName = OFDReports.FileName; if (SFDReports.ShowDialog() == DialogResult.OK) { AGRDReports.Post(); Report.SaveToFile(SFDReports.FileName); } }