示例#1
0
文件: Menu.cs 项目: DeKal/2048
        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();

            }
        }
示例#2
0
文件: Menu.cs 项目: DeKal/2048
        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();
            }
        }
示例#3
0
文件: Menu.cs 项目: DeKal/2048
 public void newGame()
 {
     Game.Dispose();
     Game = new game2048();
     Game.Show();
 }
示例#4
0
文件: Menu.cs 项目: DeKal/2048
 public void newGame()
 {
     Game.Dispose();
     Game = new game2048();
     Game.Show();
 }