Example #1
0
        private void cmdresp1N5DyM_Click(object sender, EventArgs e)
        {
            List <int> Nivel5_DIVyMOD_Enteros = cargarultimoDIVyMOD.retornarlistaenterosDIVyMOD5();

            if (Nivel5_DIVyMOD_Enteros[0] == cargarultimoDIVyMOD.retonar_resultadoNDIVyMOD5())
            {
                inciarlvlDIVyMOD5();
                conteo5DIVyMOD      = conteo5DIVyMOD + 1;
                lblconteoN5DyM.Text = Convert.ToString(conteo5DIVyMOD) + " /10";

                if (conteo5DIVyMOD == 10)
                {
                    timerN5DyM.Stop();
                    MessageBox.Show("Felicidades has temrinado", "Nivel 5_Suma");
                    Menu_de_Mundos regresoMPEleccion = new Menu_de_Mundos();
                    this.Close();
                    regresoMPEleccion.Show();
                }
            }

            else
            {
                cmdresp1N5DyM.BackColor = Color.Red;
                tiempo5DIVyMOD         -= 3;
                lbltiempoN5DyM.Text     = Convert.ToString(tiempo5DIVyMOD);
                lblpunteoN5DyM.Text     = cargarultimoDIVyMOD.quitarpuntosNDIVyMOD5();
            }
        }
Example #2
0
        private void cmdresp4N5S_Click(object sender, EventArgs e)
        {
            List <int> Nivel5_Suma_Enteros = cargarlvl5_Suma.retornarlistaenterosS5();

            if (Nivel5_Suma_Enteros[3] == cargarlvl5_Suma.retonar_resultadoNS5())
            {
                inciarlvlS5();

                cmdiniciarN5S.Enabled = false;

                conteo5S          = conteo5S + 1;
                lblconteoN5S.Text = Convert.ToString(conteo5S) + " /10";
                if (conteo5S == 10)
                {
                    timerN5S.Stop();
                    MessageBox.Show("Felicidades has temrinado", "Nivel 5_Suma");
                    Menu_de_Mundos regresoMPEleccion = new Menu_de_Mundos();
                    this.Hide();
                    regresoMPEleccion.Show();
                }
            }
            else
            {
                cmdresp4N5S.BackColor = Color.Red;
                tiempo5S         -= 3;
                lbltiempoN5S.Text = Convert.ToString(tiempo5S);
                lblpunteoN5S.Text = cargarlvl5_Suma.quitarpuntosN5S();
            }
        }
Example #3
0
        private void cmdresp2N5R_Click(object sender, EventArgs e)
        {
            List <int> Nivel5_Resta_Enteros = llamarclalvlR5.retornarlistaenterosR5();

            if (Nivel5_Resta_Enteros[1] == llamarclalvlR5.retonar_resultadoNR5())
            {
                iniciar5ultimlvl();
                conteo5R          = conteo5R + 1;
                lblconteoN5R.Text = Convert.ToString(conteo5R) + " /10";
                if (conteo5R == 10)
                {
                    timerN5R.Stop();
                    MessageBox.Show("Felicidades has temrinado", "Nivel 4");
                    Menu_de_Mundos regresoMPEleccion = new Menu_de_Mundos();
                    this.Close();
                    regresoMPEleccion.Show();
                    cmdiniciarN1R.Enabled = true;
                    cmdiniciarN2R.Enabled = true;
                    cmdinicioN3R.Enabled  = true;
                    cmdiniciarN4R.Enabled = true;
                    cmdiniciarN5R.Enabled = true;
                }
            }
            else
            {
                cmdresp2N5R.BackColor = Color.Red;
                tiempo5R         -= 3;
                lbltiempoN5R.Text = Convert.ToString(tiempo5R);
                lblpunteoN5R.Text = llamarclalvlR5.quitarpuntosN5R();
            }
        }
Example #4
0
        private void cmdRMEM_Click(object sender, EventArgs e)
        {
            Menu_de_Mundos regresoMuEsta = new Menu_de_Mundos();

            this.Close();
            regresoMuEsta.Show();
        }