protected override void OnPaint(PaintEventArgs e) { e.Graphics.ResetClip(); base.OnPaint(e); if (_renderer != null) { _renderer.RenderControl(e); } }
protected override void OnPaint(PaintEventArgs e) { e.Graphics.ResetClip(); base.OnPaint(e); if (_renderer != null) { if (BeforeRendering != null) { BeforeRendering(this, new BeforeRenderingEventArgs(_renderer)); } _renderer.RenderControl(e); } }