private bool OpenCLCOReport(string reportName) { clcorm = new CLCOReportManager(); if (clcorm.Load(reportName) != "Error") { return(true); } else { return(false); } }
private bool GetCLCOReports() { try { string[] reportFiles = Directory.GetFiles(ReportManager.CLCODirectory); CLCOReportManager clcorm = new CLCOReportManager(); clcoReports = new List <CLCOReport> { }; foreach (string file in reportFiles) { if (clcorm.Load(file) != "Error") { clcoReports.Add(clcorm.Report); } } return(true); } catch (Exception e) { MessageLogManager.LogMessage("Error Retrieving CLCO Reports: " + e.Message); return(false); } }