private void ExportToPdf(object obj) { WorkReportData wrp = new WorkReportData(this.ReportInformation, this.WorkDayCollection); PdfAccess.Filename = "1.pdf"; PdfAccess.CreateWorkReportPdf(wrp); }
private void SaveToXml(object obj) { if (this.Filename != string.Empty) { WorkReportData wrp = new WorkReportData(this.ReportInformation, this.WorkDayCollection); XmlAccess.SerializeObjectToXml(wrp, this.Filename); } else { this.SaveAsToXml(null); } }