Beispiel #1
0
        private void ButtonReturn_Click(object sender, EventArgs e)
        {
            FormMenuPrincipal formMenuPrincipal = new FormMenuPrincipal();

            this.Close();
            formMenuPrincipal.Show();
        }
Beispiel #2
0
        void ExitThisForm()
        {
            this.Close();
            FormMenuPrincipal formMenuPrincipal = new FormMenuPrincipal();

            formMenuPrincipal.Show();
        }
Beispiel #3
0
        private void buttonRegresar_Click(object sender, EventArgs e)
        {
            this.Close();
            FormMenuPrincipal formMenuPrincipal = new FormMenuPrincipal();

            formMenuPrincipal.Show();
        }
        void ExitThisForm()
        {
            if (CanExit1 == true && CanExit2 == true)
            {
                timer1.Stop();
                MessageBox.Show("Jugador 1: " + totalPointsPlayer1 + "\n" + "Jugador 2: " + totalPointsPlayer2);

                scoreTable.AddPuntuation(new Player(namePlayer1, totalPointsPlayer1));
                scoreTable.AddPuntuation(new Player(namePlayer2, totalPointsPlayer2));
                this.Close();
                FormMenuPrincipal formMenuPrincipal = new FormMenuPrincipal();
                formMenuPrincipal.Show();
            }
        }