private static void DrawGradientItem(Graphics g,
Rectangle backRect,
GradientItemColors colors)
{
// Cannot paint a zero sized area
if ((backRect.Width > 0) && (backRect.Height > 0))
{
// Draw the background of the entire item
DrawGradientBack(g, backRect, colors);
// Draw the border of the entire item
DrawSolidBorder(g, backRect, colors);
}
}