private void RenderButton(Graphics g)
        {
            GMTrackBarPaintEventArgs e = new GMTrackBarPaintEventArgs(g, BTR);

            e.BtnState = thumbButton.State;
            OnBeforePaintButton(e);

            if (!e.Cancel)
            {
                thumbButton.DrawButton(g);
            }
            e.Dispose();
        }
        private void RenderMainLine(Graphics g)
        {
            GMTrackBarPaintEventArgs e = new GMTrackBarPaintEventArgs(g,
                                                                      MainLineRectToDraw, MainLineRange1Rect, MainLineRange2Rect);

            OnBeforePaintMainLine(e);

            if (!e.Cancel)
            {
                RenderMainLine(g, MainLineRange1Rect, MainLineRange1BackColor);
                RenderMainLine(g, MainLineRange2Rect, MainLineRange2BackColor);
            }
            e.Dispose();
        }