Exemplo n.º 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);
 }
Exemplo n.º 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", "");
     }
 }
Exemplo n.º 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;
 }
Exemplo n.º 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", "");
     }
 }