Beispiel #1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            e.Graphics.ResetClip();

            base.OnPaint(e);

            if (_renderer != null)
            {
                _renderer.RenderControl(e);
            }
        }
Beispiel #2
0
        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);
            }
        }