예제 #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));
        }