internal virtual void OnPaint(Graphics g, Rectangle itemRect, MetroRenderer renderer)
{
int height = itemRect.Height - 30;
int width = itemRect.Width - 30;
Rectangle iconRect = new Rectangle(15, itemRect.Y + 15, width, height);
if (this.Icon != null)//绘制图标
{
g.DrawImage(this.Icon, iconRect, 0, 0, this.Icon.Width, this.Icon.Height, GraphicsUnit.Pixel);
}
}