private void Window_FormClosing(object sender, FormClosingEventArgs e) { Game.GetInstance().stopGame(); }
private void canvas_Paint(object sender, PaintEventArgs e) { Graphics g = canvas.CreateGraphics(); Game.GetInstance().startGraphics(g); }