public static void Main()
Random rnd = new Random();
int w = Polygon.GetClientWidth();
int h = Polygon.GetClientHeight();
Point yBottom = new Point(0, -h / 2);
Point yTop = new Point(0, h / 2);
Polygon yAxis = new Polygon(yBottom, yTop);
Point xLeft = new Point(-w / 2, 0);
Point xRight = new Point(w / 2, 0);
Polygon xAxis = new Polygon(xLeft, xRight);
double m = rnd.Next(1, 11);
Point L = new Point(-w / 2, -h / 2);
Point R = new Point(w / 2, h / 2);
Polygon t = new Polygon(L, R);
Point X = new Point(50, m*50+b);
Polygon pX = new Polygon(20, 20);
Console.WriteLine("X=({0},{1})", X.GetX(), X.GetY());
pX.Move(X.GetX(), X.GetY());
pX.SetBrushColor(System.Drawing.Color.Blue);
Console.WriteLine("Dear Pupil, what is the m of the line, if he goes into X and (0,0)?");
double answer = double.Parse(Console.ReadLine());
Point O = new Point(0,0);
Polygon p1 = new Polygon(10, 3);
Console.WriteLine("O=({0},{1})", O.GetX(), O.GetY());
p1.Move(O.GetX(), O.GetY());
for (double i = O.GetX(); i < X.GetX(); i++)
pO.SetBrushColor(System.Drawing.Color.Green);
pO.SetBrushColor(System.Drawing.Color.Red);
Polygon lineCaption = new Polygon(10, 0);
lineCaption.Move(-w / 2 + 100, h / 2 - 100);
lineCaption.SetCaption("Y = " + m + "X + " + b);