示例#1
0
 /// <summary>
 /// Initialize the VerboseClass and returns if already initialized
 /// </summary>
 /// <returns>returns the instance of VerboseClass</returns>
 public static VerboseClass GetInstance()
 {
     if (instance == null)
     {
         instance = new VerboseClass {
             ErrorCount = 0
         };
     }
     return(instance);
 }
示例#2
0
 private static void CreateVerbose(PublicationInformation publicationInformation)
 {
     verboseClass            = VerboseClass.GetInstance();
     verboseClass.ErrorCount = 0; // reset to zero for every launch
     if (!File.Exists(publicationInformation.DefaultCssFileWithPath))
     {
         verboseClass.ErrorFileName = Path.GetFileNameWithoutExtension(publicationInformation.DefaultXhtmlFileWithPath) + "_err.html";
         verboseClass.WriteError("", "", publicationInformation.DefaultCssFileWithPath + "  Css file is missing", "");
     }
 }
示例#3
0
 /// <summary>
 /// Initialize the VerboseClass and returns if already initialized
 /// </summary>
 /// <returns>returns the instance of VerboseClass</returns>
 public static VerboseClass GetInstance()
 {
     if (instance == null)
     {
         instance = new VerboseClass {ErrorCount = 0};
     }
     return instance;
 }
示例#4
0
 private static void CreateVerbose(PublicationInformation publicationInformation)
 {
     verboseClass = VerboseClass.GetInstance();
     verboseClass.ErrorCount = 0; // reset to zero for every launch
     if (!File.Exists(publicationInformation.DefaultCssFileWithPath))
     {
         verboseClass.ErrorFileName = Path.GetFileNameWithoutExtension(publicationInformation.DefaultXhtmlFileWithPath) + "_err.html";
         verboseClass.WriteError("", "", publicationInformation.DefaultCssFileWithPath + "  Css file is missing", "");
     }
 }