Exemple #1
0
        private void Start_Click(object sender, EventArgs e)
        {
            if (Game == null)
            {
                Game = new game2048();
                Game.Show();
                this.Hide();
            }
            else
            {

                Continue con = new Continue();

                con.Show();

                con.WaitState();

                if (Continue.state == 1)
                {
                    Game.Show();
                    this.Hide();
                }
                con.Hide();

            }
        }
Exemple #2
0
        private void Start_Click(object sender, EventArgs e)
        {
            if (Game == null)
            {
                Game = new game2048();
                Game.Show();
                this.Hide();
            }
            else
            {
                Continue con = new Continue();

                con.Show();

                con.WaitState();

                if (Continue.state == 1)
                {
                    Game.Show();
                    this.Hide();
                }
                con.Hide();
            }
        }
Exemple #3
0
 public void newGame()
 {
     Game.Dispose();
     Game = new game2048();
     Game.Show();
 }
Exemple #4
0
 public void newGame()
 {
     Game.Dispose();
     Game = new game2048();
     Game.Show();
 }