private void curveToToolStripMenuItem_Click(object sender, EventArgs e)
{
lastSelected = "curveTo";
OnPaintAction = cr =>
{
double x = 25.6, y = 128.0;
double x1 = 102.4, y1 = 230.4,
x2 = 153.6, y2 = 25.6,
x3 = 230.4, y3 = 128.0;
cr.MoveTo( x, y);
cr.CurveTo( x1, y1, x2, y2, x3, y3);
cr.LineWidth = 10.0;
cr.Stroke();
cr.SetSourceRGBA(1, 0.2, 0.2, 0.6);
cr.LineWidth = 6.0;
cr.MoveTo(x, y); cr.LineTo(x1, y1);
cr.MoveTo(x2, y2); cr.LineTo(x3, y3);
cr.Stroke();
};
Invalidate();
}