public override void DrawBack(Graphics g, Rectangle rect)
{
Rectangle rect2 = new Rectangle(rect.X + 1, rect.Y + 1, rect.Width - 2, rect.Height - 1);
Rectangle rect3 = new Rectangle(rect.X + 2, rect.Y + 2, rect.Width - 4, rect.Height - 3);
using (AntiAlias aa = new AntiAlias(g))
{
using (GraphicsPath path1 = CreateBorderPath(rect, _cutItemMenu),
path2 = CreateBorderPath(rect2, _cutItemMenu),
path3 = CreateBorderPath(rect3, _cutItemMenu))
{
using(SolidBrush brush1 = new SolidBrush(CommonHelper.MergeColors(Border1, 0.4f, Back1, 0.6f)),
brush2 = new SolidBrush(CommonHelper.MergeColors(Border1, 0.2f, Back1, 0.8f)),
brush3 = new SolidBrush(Back1))
{
g.FillPath(brush1, path1);
g.FillPath(brush2, path2);
g.FillPath(brush3, path3);
}
}
}
}