private void drawBackground(System.Windows.Forms.PaintEventArgs e, Color borderColor, Color colorA, Color colorB, ref Rectangle rect, GraphicsPath graphPath)
{
LinearGradientBrush brush = new LinearGradientBrush( rect,
colorA,
colorB,
LinearGradientMode.BackwardDiagonal);
int borderWidth = _borderWidth;
if (IsDefault)
borderWidth += 1;
Pen pen = new Pen(Color.FromArgb(180, borderColor), borderWidth);
e.Graphics.FillPath(brush, graphPath);
e.Graphics.DrawPath(pen, graphPath);
pen.Dispose();
brush.Dispose();
}