Exemple #1
0
        public static void OpenGame(AgreeOtherPlayer window)
        {
            Game game = new Game();

            game.Show();
            window.Close();
        }
Exemple #2
0
 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();
     }
 }
Exemple #3
0
        public static void OpenMainWindow(AgreeOtherPlayer window)
        {
            MainWindow main = new MainWindow();

            main.Show();
            window.Close();
        }