Пример #1
0
 public ImmediateWindow(SkylineWindow parent, TextBoxStreamWriterHelper writerHelper)
 {
     InitializeComponent();
     // Initializes a new TextWriter to write to the textBox instead.
     _textBoxStreamWriter = new TextBoxStreamWriter(textImWindow, this, writerHelper);
     _parent = parent;
 }
Пример #2
0
 public TextBoxStreamWriter(TextBox box, Control immediateWindow, TextBoxStreamWriterHelper writerHelper)
 {
     _box                = box;
     _box.Text           = writerHelper.Text;
     writerHelper.Wrote += HandleOnWroteLine;
     _immediateWindow    = immediateWindow;
     WriterHelper        = writerHelper;
 }