public static void TurnDebuggingOff() { if (df != null) { df.Close(); df = null; } DoDebug = false; }
public static void TurnDebuggingOn() { if (df == null) { df = new DebugForm(); df.Show(); } DoDebug = true; }
public static void LogMessage(string message, string exception, string trace, bool bForce) { if (df == null && bForce) { df = new DebugForm(); df.Show(); df.AddMessage(message, exception, trace); } if (DoDebug) { df.AddMessage(message, null, null); } }