private void LoadConsole() { D.Console.Write = new Action <string>(str => OnConsoleOutput?.Invoke(str)); D.Console = new Action <string>(str => OnConsoleOutput?.Invoke(str)); D.Debug = new Action <Value>((val) => { System.Diagnostics.Debugger.Break(); }); /*D.Debug = new Action(() => * { * System.Diagnostics.Debugger.Break(); * });*/ }
internal static void RunConsoleOutput(ref object text, ref ConsoleColor color, ref bool cancel) => OnConsoleOutput?.Invoke(ref text, ref color, ref cancel);
protected void OutputRedirector_OnConsoleOutput(object sender, string output) { OnConsoleOutput?.Invoke(this, output); }
protected void RaiseOnConsoleOutput(AssemblyLoader loader, string output) { OnConsoleOutput?.Invoke(loader, output); }
/// <summary> Fires the console output event. </summary> /// <param name="content"> The content. </param> private void FireConsoleOutputEvent(string content) => OnConsoleOutput?.Invoke(this, new Tuple <string>(content));
/// <summary> /// Fires the console output event. /// </summary> /// <param name="content">The content.</param> private void FireConsoleOutputEvent(string content) { // Get the event. OnConsoleOutput?.Invoke(this, new ConsoleEventArgs(content)); }
public override void Write(string value) { OnConsoleOutput?.Invoke(this, value); }
public override void Write(char value) { OnConsoleOutput?.Invoke(this, value.ToString()); }