示例#1
0
        public LogWindow()
        {
            InitializeComponent();

            NotifyTextWriter NewOut = new NotifyTextWriter();
            NewOut.TextWritten += new TextWriteHandler(NewLogText);

            OldOut = System.Console.Out;

            System.Console.SetOut(TextWriter.Synchronized(NewOut));
        }
示例#2
0
        public LogWindow()
        {
            InitializeComponent();

            NotifyTextWriter NewOut = new NotifyTextWriter();

            NewOut.TextWritten += new TextWriteHandler(NewLogText);

            OldOut = System.Console.Out;

            System.Console.SetOut(TextWriter.Synchronized(NewOut));
        }