protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
if ((int)value < Positions.Length)
e.Graphics.FillEllipse(Brushes.Red, Positions[(int)value].X, Positions[(int)value].Y, 10, 10);
if (value == CardinalPoint.Centroid)
e.Graphics.DrawRectangle(pen, button10.Bounds);
else if (value == CardinalPoint.ShearCenter)
e.Graphics.DrawRectangle(pen, button11.Bounds);
}