Ejemplo n.º 1
0
        public void ButtonClick(object o, EventArgs e)
        {
            Button bouton = o as Button;

            if (bouton.Name.Equals(btn_resume.Name))
            {
                gameW.timer1.Start();
                gameW.MyGame.PauseGame  = false;
                gameW.pan_arena.Visible = true;
                this.Dispose();
            }
            else if (bouton.Name.Equals(btn_save.Name))
            {
                gameW.MyGame.SaveGame();
                gameW.Close();
            }
            else
            {
                gameW.Close();
            }
        }
Ejemplo n.º 2
0
        public void ButtonClick(object o, EventArgs e)
        {
            Button bouton = o as Button;

            if (bouton.Name.Equals(btn_newGame.Name))
            {
                scG.LoadGameParam(this.Gameparam, null);
                scG.pan_arena.Visible = true;
                this.Dispose();
            }
            else if (bouton.Name.Equals(btn_exit.Name))
            {
                scG.Close();
            }
        }