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(); } }
public void newGame() { Game.Dispose(); Game = new game2048(); Game.Show(); }