2using System.Collections.Generic;
6using System.Windows.Forms;
7using System.Diagnostics;
13 private TextBoxBase _textBoxBase;
18 _textBoxBase = textBoxBase;
22 public override void Write(String text)
24 MethodInvoker action = delegate
26 _textBoxBase.AppendText(text);
27 _textBoxBase.ScrollToCaret();
29 _form.BeginInvoke(action);
32 public override void Write(Char[] buffer, Int32 index, Int32 count)
34 String text = String.Empty;
35 for (
int i = index; i < index + count; i++)
42 public override Encoding Encoding
44 get {
return System.Text.Encoding.UTF8; }