예제 #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", "");
     }
 }