示例#1
0
        private void canvas_Paint(object sender, PaintEventArgs e)
        {
            Graphics g = this.canvas.CreateGraphics();
            game = new Game(g);

            game.Start();
        }
 private void canvas_Paint(object sender, PaintEventArgs e)
 {
     Graphics g = this.canvas.CreateGraphics();
     game = new Game(g, lblPoints, lblLives, lblGameOver, Menu);
 }