Exemplo n.º 1
0
        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();
             * });*/
        }
Exemplo n.º 2
0
 internal static void RunConsoleOutput(ref object text, ref ConsoleColor color, ref bool cancel) => OnConsoleOutput?.Invoke(ref text, ref color, ref cancel);
Exemplo n.º 3
0
 protected void OutputRedirector_OnConsoleOutput(object sender, string output)
 {
     OnConsoleOutput?.Invoke(this, output);
 }
Exemplo n.º 4
0
 protected void RaiseOnConsoleOutput(AssemblyLoader loader, string output)
 {
     OnConsoleOutput?.Invoke(loader, output);
 }
Exemplo n.º 5
0
 /// <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));
Exemplo n.º 6
0
 /// <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());
 }