Ejemplo n.º 1
0
        private void nextButton_Click(object sender, RoutedEventArgs e)
        {
            MusicalChairsTokenPage page = new MusicalChairsTokenPage();
            Game2Form win = (Game2Form)Window.GetWindow(this);

            win.Content = page;
        }
        private void nextButton_Click(object sender, RoutedEventArgs e)
        {
            int numSurvivors = 0;

            for (int i = 0; i < GameIO.numPlayers; i++)
            {
                Game2 temp = (Game2)Game2Form.allPlayersAsGame2[i];
                if (temp.isEliminated <= 1)
                {
                    numSurvivors++;
                }
            }

            if (numSurvivors <= 2)
            {
                MusicalChairsFinalWinnersPage page = new MusicalChairsFinalWinnersPage();
                Game2Form win = (Game2Form)Window.GetWindow(this);
                win.Content = page;
            }
            else
            {
                MusicalChairsElectionPage page = new MusicalChairsElectionPage();
                Game2Form win = (Game2Form)Window.GetWindow(this);
                win.Content = page;
            }
        }
Ejemplo n.º 3
0
        private void nextButton_Click(object sender, RoutedEventArgs e)
        {
            //left off right here
            MusicalChairsElectionResultsPage page = new MusicalChairsElectionResultsPage();
            Game2Form win = (Game2Form)Window.GetWindow(this);

            win.Content = page;
        }
        private void finishButton_Click(object sender, RoutedEventArgs e)
        {
            MusicalChairsFinalWinnersPage page = new MusicalChairsFinalWinnersPage();
            Game2Form win = (Game2Form)Window.GetWindow(this);

            win.Content = page;
            //left off here, make the final musical winners display page
        }
Ejemplo n.º 5
0
        private void nextButton_Click(object sender, RoutedEventArgs e)
        {
            CPass.saveCPasses(cpasses);
            Game2Form form = new Game2Form();
            Game2Form win  = (Game2Form)Window.GetWindow(this);

            win.Close();
            form.Show();
        }
Ejemplo n.º 6
0
        private void game2_Click_1(object sender, RoutedEventArgs e)
        {
            Game2Form game2Form = new Game2Form();

            game2Form.Show();
        }