Exemplo n.º 1
0
 public ServerInteractive()
 {
     InitializeComponent();
     ConsoleWriter = Console.Out;	// Save the current console TextWriter.
     RedirConsole = new StringRedir(ref this.richTextBox1);
     Console.SetOut(RedirConsole);	// Set console output to the StringRedir clas
 }
Exemplo n.º 2
0
 public ServerInteractive()
 {
     InitializeComponent();
     ConsoleWriter = Console.Out;        // Save the current console TextWriter.
     RedirConsole  = new StringRedir(ref this.richTextBox1);
     Console.SetOut(RedirConsole);       // Set console output to the StringRedir clas
 }