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(); } }
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(); } }
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(); } }
private void cmdresp2N5M_Click(object sender, EventArgs e) { List <int> Nivel5_Multiplicacion_Enteros = ultimolvl5M.retornarlistaenterosM5(); if (Nivel5_Multiplicacion_Enteros[1] == ultimolvl5M.retonar_resultadoNM5()) { comenzarlvl5M(); conteo5M = conteo5M + 1; lblconteoN5M.Text = Convert.ToString(conteo5M) + " /10"; if (conteo5M == 10) { timerN5M.Stop(); MessageBox.Show("Felicidades has temrinado", "Nivel 5_Multiplicación"); Menu_de_Mundos regresoMPdeM5 = new Menu_de_Mundos(); this.Hide(); regresoMPdeM5.ShowDialog(); this.Close(); } } else { cmdresp2N5M.BackColor = Color.Red; tiempo5M -= 3; lbltiempoN5M.Text = Convert.ToString(tiempo5M); lblpunteoN5M.Text = ultimolvl5M.quitarpuntosN5M(); } }
private void cmdRMEM_Click(object sender, EventArgs e) { Menu_de_Mundos regresoMuEsta = new Menu_de_Mundos(); this.Close(); regresoMuEsta.Show(); }
private void cmdSalirJuego_Click(object sender, EventArgs e) { // se hara un dialog result en el cual si el usuario da ok o aceptar la aplicación se saldra de lo contrario se mostrara otra vez. DialogResult segusalir = new DialogResult(); segusalir = MessageBox.Show(" ¿Está seguro que desea salir? ", "Kings of Maths", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); // s emuestra el mensaje y los botones de aceptar o cancerlar( ok or cancel) if (segusalir == DialogResult.OK) { this.Close(); } else { Menu_de_Mundos regremostra = new Menu_de_Mundos(); this.Hide(); regremostra.ShowDialog(); this.Show(); } }
private void cmdinicio_Click(object sender, EventArgs e) { // luego de haber guardado los datos del usuario el podra iniciar el juego Menu_de_Mundos cargareljuego = new Menu_de_Mundos(); if (radbtJug1.Checked == true) // si el usuario inicio con el radio boton 1 la label dentro del Menu princial aparecera con este nombre. { cargareljuego.lblNomJugaMP.Text = " usuario: " + radbtJug1.Text; } else if (radbtJug2.Checked == true) // sino parecera con el nombre del rad botono 2 { cargareljuego.lblNomJugaMP.Text = " usuario: " + radbtJug2.Text; } else { cargareljuego.lblNomJugaMP.Text = " usuario: " + radbtJug3.Text; // y si inicara con el ultimo la label del Menu principoal aparecera con el nombre de la rad boton3 } this.Hide(); cargareljuego.ShowDialog(); this.Close(); }