/// reset the static variables for each Web Request call. public static void ResetStaticVariables() { DebugLevel = 0; FNoLoggingToConsoleError = false; ULogWriter = null; ULogFileName = String.Empty; UUserNamePrefix = DEFAULTUSERNAMEPREFIX; ULogTextAsString = null; ULogPageNumber = 1; UNewMessageCallback = null; Context = String.Empty; StatusBarProcedure = null; StatusBarProcedureValid = false; }
/// <summary> /// Call this method on Windows Forms apps to send the 'console' output to a dynamic string /// </summary> public static void SendConsoleOutputToString(TLogNewMessageCallback ANewMessageCallback) { ULogTextAsString = "Logging started..." + Environment.NewLine; UNewMessageCallback = ANewMessageCallback; }