public static GraphicsPath RoundRec(Rectangle Rectangle, int Curve)
{
GraphicsPath graphicsPath = new GraphicsPath();
int num = Curve * 2;
graphicsPath.AddArc(new Rectangle(Rectangle.X, Rectangle.Y,
num, num),
-180f, 90f);
graphicsPath.AddArc(new Rectangle(Rectangle.Width - num + Rectangle.X,
Rectangle.Y, num, num),
-90f, 90f);
graphicsPath.AddArc(new Rectangle(Rectangle.Width - num + Rectangle.X,
Rectangle.Height - num + Rectangle.Y,
num, num),
0f, 90f);
graphicsPath.AddArc(new Rectangle(Rectangle.X,
Rectangle.Height - num + Rectangle.Y,
num, num),
90f, 90f);
graphicsPath.AddLine(new Point(Rectangle.X,
Rectangle.Height - num + Rectangle.Y), new Point(Rectangle.X,
Curve + Rectangle.Y));
return graphicsPath;
}