protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); Extrema extrema = Bezier.Extrema(); for (int i = 0; i < extrema.X.Length; i++) { DrawPoint(e.Graphics, Bezier.Position(extrema.Values[i]), Color.Blue, 10); } }