public EditboxBasedConsoleOutputControl()
 {
     _timer = new ProcessOutputTimer(AppendMessage);
     _editbox = new RichTextBox { BackColor = SystemColors.Window, BorderStyle = BorderStyle.FixedSingle, Dock = DockStyle.Fill, Name = "_editbox", ReadOnly = true };
     Controls.Add(_editbox);
     _timer.Start();
 }
Exemplo n.º 2
0
 public EditboxBasedConsoleOutputControl()
 {
     _timer   = new ProcessOutputTimer(AppendMessage);
     _editbox = new RichTextBox {
         BackColor = SystemColors.Window, BorderStyle = BorderStyle.FixedSingle, Dock = DockStyle.Fill, Name = "_editbox", ReadOnly = true
     };
     Controls.Add(_editbox);
 }
 protected override void Dispose(bool disposing)
 {
     KillProcess();
     if ((disposing) && (_timer != null))
     {
         _timer.Dispose();
         _timer = null;
     }
     base.Dispose(disposing);
 }
 protected override void Dispose(bool disposing)
 {
     KillProcess();
     if((disposing) && (_timer != null))
     {
         _timer.Dispose();
         _timer = null;
     }
     base.Dispose(disposing);
 }