/// <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); }
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", ""); } }
/// <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; }