public GDIRenderer(IRenderingNativeControl native) : base(native) { // Subscribe to mouse events native.MouseDownNative += this.OnMouseDown; native.MouseUpNative += this.OnMouseUp; native.MouseMoveNative += this.OnMouseMove; // this.Color = Color.Black; this.bufferedGraphic = new BufferedGraphic(this.Draw, this.Refresh, native.DisposeImage, native.IsDisplayed); }
public WaveFormControl() { this.DoubleBuffered = true; this.InitializeComponent(); bg = new BufferedGraphic <WaveFormControl>(this); }