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

            Game.GetInstance().startGraphics(g);
        }