ARCed.UI.DockPanel.OnPaint C# (CSharp) Method

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);

            if (this.DockBackColor == BackColor) return;

            Graphics g = e.Graphics;
            var bgBrush = new SolidBrush(this.DockBackColor);
            g.FillRectangle(bgBrush, ClientRectangle);
        }