Esempio n. 1
0
 public OutputDevice(OutputType type)
     : base()
 {
     this.writeChar  = GetInheritorDelegateChar();
     this.writePixel = GetInheritorDelegatePixel();
     this.type       = type;
 }
Esempio n. 2
0
 public override void Write(char value)
 {
     if (this.textbox.InvokeRequired)
     {
         WriteCallbackChar d = new WriteCallbackChar(Write);
         textbox.Invoke(d, new object[] { value });
     }
     else
     {
         textbox.AppendText(value.ToString());
     }
 }