OpenTween.ToolStripAPIGauge.OnPaint C# (CSharp) Method

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void
        protected override void OnPaint(PaintEventArgs e)
        {
            var g = e.Graphics;

            if (this.apiGaugeBounds != Rectangle.Empty)
                g.FillRectangle(Brushes.LightBlue, this.apiGaugeBounds);

            if (this.timeGaugeBounds != Rectangle.Empty)
                g.FillRectangle(Brushes.LightPink, this.timeGaugeBounds);

            base.OnPaint(e);
        }