Esempio n. 1
0
        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            Graphics g = e.Graphics;

            game.Draw(g);

            if (gameOver)
            {
                DrawGameOver(g);
            } // end if
        }
Esempio n. 2
0
 private void pictureBox1_Paint(object sender, PaintEventArgs e)
 {
     game.Draw(e.Graphics);
 }
Esempio n. 3
0
 private void Form1_Paint(object sender, PaintEventArgs e)
 {
     game.Draw(e.Graphics);
 }