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
 }
示例#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
 }