private bool GetYECOReports() { try { string[] reportFiles = Directory.GetFiles(ReportManager.CODirectory); YECOReportManager corm = new YECOReportManager(); yecoReports = new List <YECOReport> { }; foreach (string file in reportFiles) { if (corm.Load(file) != "Error") { yecoReports.Add(corm.Report); } } return(true); } catch (Exception e) { MessageLogManager.LogMessage("Error Retrieving CLSE Reports: " + e.Message); return(false); } }
private bool OpenYECOReport(string reportName) { yecorm = new YECOReportManager(); return(yecorm.LoadOnly(reportName)); }