public OutputDevice(OutputType type) : base() { this.writeChar = GetInheritorDelegateChar(); this.writePixel = GetInheritorDelegatePixel(); this.type = type; }
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()); } }