int IDebugOutputCallbacksWide.Output(DEBUG_OUTPUT Mask, string Text) { if (ConsumeOutput && Mask.HasFlag(DEBUG_OUTPUT.NORMAL)) { OutputText.Append(Text); } else if (ConsumeOutput) { using (var ev = new EventWaitHandle(false, EventResetMode.AutoReset, OutputTextEventName)) { ev.Set(); } ConsumeOutput = false; } else { OnOutputCallback(new OutputCallbackEventArgs(Text, Mask)); } return(0); }
private static void AddToOutput(string Text) { OutputText.Append("\n" + Text); }