/// <summary> /// If the application is started with the SHIFT key pressed, warnings and errors are reported on a window. /// </summary> /// <param name="type">See <see cref="StartUp.DEBUG_TYPE"/> for the possible values. </param> /// <param name="text">Text to show in the dialog window.</param> public static void AddDebugInfo(DEBUG_TYPE type, string text) { if (debug != null) { if (debug.InvokeRequired) { debug.BeginInvoke(new MethodInvoker(delegate { debug.AddDebugInfo(type, text); })); } else { debug.AddDebugInfo(type, text); } } }
/// <summary> /// If the application is started with the SHIFT key pressed, warnings and errors are reported on a window. /// </summary> /// <param name="type">See <see cref="StartUp.DEBUG_TYPE"/> for the possible values. </param> /// <param name="text">Text to show in the dialog window.</param> public static void AddDebugInfo(DEBUG_TYPE type, string text) { if (debug != null) { debug.AddDebugInfo(type, text); } }