public static void OpenGame(AgreeOtherPlayer window) { Game game = new Game(); game.Show(); window.Close(); }
public void ChoosePage(MainWindow main) { if (CheckOnAgree() == 0) { AgreeOtherPlayer agree = new AgreeOtherPlayer(); agree.Show(); main.Close(); } if (CheckOnAgree() == -1) { SelectPlyer play = new SelectPlyer(); play.Show(); main.Close(); } if (CheckOnAgree() == -2) { SelectPlyer play = new SelectPlyer(); play.Show(); main.Close(); } if (CheckOnAgree() == 1) { Game game = new Game(); game.Show(); main.Close(); } if (CheckOnAgree() == 2) { Winner winner = new Winner(); winner.Show(); main.Close(); } }
public static void OpenMainWindow(AgreeOtherPlayer window) { MainWindow main = new MainWindow(); main.Show(); window.Close(); }