예제 #1
0
 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);
     }
 }
예제 #2
0
 private bool OpenCOSEReport(string reportName)
 {
     coserm = new COSEReportManager();
     return(coserm.Load(reportName));
 }