Renamed the Draw event to OnDraw.
Moved the drawing code from inside the Window class main loop to a Draw method.