Example #1
0
 private void ExportTextFile(ITextFile textFile)
 {
     try
     {
         if (textFile.Export())
         {
             this.log.Info(textFile.FileName, "Exported successfully.");
         }
         else
         {
             this.log.Debug(textFile.FileName, "Needs to be analyzed first.");
         }
     }
     catch (SystemException exc)
     {
         this.log.Error(textFile.FileName, "Error: " + exc.Message);
         if (System.Diagnostics.Debugger.IsAttached)
         {
             throw;
         }
     }
 }