public ConsoleTextBox()
 {
     InitializeComponent();
     consoleRedirection = new ConsoleRedirection(richTextBox1);
     Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
     Debug.AutoFlush = true;
     Console.SetOut(consoleRedirection);
 }
 public ConsoleTextBox()
 {
     InitializeComponent();
     consoleRedirection = new ConsoleRedirection(richTextBox1);
     Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
     Debug.AutoFlush = true;
     Console.SetOut(consoleRedirection);
 }