private bool GetCOSEReports() { try { string[] reportFiles = Directory.GetFiles(ReportManager.COSEDirectory); COSEReportManager coserm = new COSEReportManager(); coseReports = new List <COSEReport> { }; foreach (string file in reportFiles) { if (coserm.Load(file)) { coseReports.Add(coserm.Report); } } return(true); } catch (Exception e) { MessageLogManager.LogMessage("Error retireving COSE Reports: " + e.Message); return(false); } }
private bool OpenCOSEReport(string reportName) { coserm = new COSEReportManager(); return(coserm.Load(reportName)); }