private void MouseClicked(Point CurMouse) { //Icon sizes & Positions /*Point ShutdownStart = new Point(750, 20); * int ShutdownSize = 30; * Point DrawStart = new Point(750, 60); * int DrawSize = 30;*/ if ((CurMouse.X > ShutdownStart.X) && (CurMouse.X < ShutdownStart.X + ShutdownEnd.X)) { if ((CurMouse.Y > ShutdownStart.Y) && (CurMouse.Y < ShutdownStart.Y + YSize)) { Sys.Power.Shutdown(); } } if ((CurMouse.X > DrawStart.X) && (CurMouse.X < DrawStart.X + DrawEnd.X)) { if ((CurMouse.Y > DrawStart.Y) && (CurMouse.Y < DrawStart.Y + YSize)) { DrawApp Draw = new DrawApp(); Draw.Draw(C); Initialize(); } } if ((CurMouse.X > TextBoxStart.X) && (CurMouse.X < TextBoxStart.X + TextBoxEnd.X)) { if ((CurMouse.Y > TextBoxStart.Y) && (CurMouse.Y < TextBoxStart.Y + YSize)) { Notepad Note = new Notepad(); Note.Launch(C); Initialize(); } } }