private void DrawBezier(Graphics graphics, Bezier bezier, Pen pen, Brush brush, bool control)
{
graphics.DrawBezier(pen, bezier.Point1.ToPointF(), bezier.Point2.ToPointF(), bezier.Point3.ToPointF(), bezier.Point4.ToPointF());
if (control)
{
graphics.DrawLine(pen, bezier.Point1.ToPointF(), bezier.Point2.ToPointF());
graphics.DrawLine(pen, bezier.Point4.ToPointF(), bezier.Point3.ToPointF());
DrawPoint(graphics, bezier.Point1.X, bezier.Point1.Y, brush);
DrawPoint(graphics, bezier.Point2.X, bezier.Point2.Y, brush);
DrawPoint(graphics, bezier.Point3.X, bezier.Point3.Y, brush);
DrawPoint(graphics, bezier.Point4.X, bezier.Point4.Y, brush);
}
}