private void cmdMundoMultipli_Click(object sender, EventArgs e) {// lamo al mundo de multiplicación Niveles_MULTIPLICACION cargarnivelesM = new Niveles_MULTIPLICACION(); this.Hide(); cargarnivelesM.ShowDialog(); this.Show(); }
private void timerN5M_Tick(object sender, EventArgs e) { int puntemin5_5 = 70000, limiinfe1_5 = 0, limeinfe2_5 = 0, A5_5 = 0, limiinfe3_5 = 0, limesupe1_5 = 0, limesupe2_5 = 0, limisupe3_5 = 0; A5_5 = (punteomax5M - puntemin5_5) / 3; limiinfe1_5 = puntemin5_5; limeinfe2_5 = puntemin5_5 + A5_5; limiinfe3_5 = puntemin5_5 + (2 * A5_5); limesupe1_5 = (puntemin5_5 + A5_5) - 1; limesupe2_5 = ((puntemin5_5 + (2 * A5_5)) - 1); limisupe3_5 = punteomax5M; if ((Convert.ToInt32(lblpunteoN5M.Text) >= limiinfe1_5) && (Convert.ToInt32(lblpunteoN5M.Text) <= limesupe1_5)) { picbN5M.Image = imgliM.Images[1]; } else { picbN5M.Image = imgliM.Images[0]; } if ((Convert.ToInt32(lblpunteoN4M.Text) >= limeinfe2_5) && (Convert.ToInt32(lblpunteoN5M.Text) <= limesupe2_5)) { picbN5M.Image = imgliM.Images[2]; } if ((Convert.ToInt32(lblpunteoN5M.Text) >= limiinfe3_5) && (Convert.ToInt32(lblpunteoN5M.Text) <= limisupe3_5)) { picbN5M.Image = imgliM.Images[3]; } tiempo5M--; lblpunteoN5M.Text = ultimolvl5M.quitapunteos_segundosNM5(); if ((tiempo5M >= 0) && (Convert.ToInt32(lblpunteoN5M.Text) > 0) && (Convert.ToInt32(lblpunteoN5M.Text) >= puntemin5_5)) { lblpunteoN5M.Text = tiempo5M.ToString(); } else { timerN5M.Stop(); lblpunteoN5M.Text = "0"; picbN5M.Image = imgliM.Images[0]; MessageBox.Show("Lo siento ha perdido, vuela a intentarlo"); // mostrar mensaje de volver a intentarlo Niveles_MULTIPLICACION perdiste5M = new Niveles_MULTIPLICACION(); // reinicir la tab this.Hide(); perdiste5M.ShowDialog(); this.Close(); } }
private void timerN4M_Tick(object sender, EventArgs e) { int punteminM4 = 65000, limiinfeM1_4 = 0, limeinfeM2_4 = 0, AM4_4 = 0, limiinfeM3_4 = 0, limesupeM1_4 = 0, limesupeM2_4 = 0, limisupeM3_4 = 0; AM4_4 = (punteomax4M - punteminM4) / 3; limiinfeM1_4 = punteminM4; limeinfeM2_4 = punteminM4 + AM4_4; limiinfeM3_4 = punteminM4 + (2 * AM4_4); limesupeM1_4 = (punteminM4 + AM4_4) - 1; limesupeM2_4 = ((punteminM4 + (2 * AM4_4)) - 1); limisupeM3_4 = punteomax4M; if ((Convert.ToInt32(lblpunteoN4M.Text) >= limiinfeM1_4) && (Convert.ToInt32(lblpunteoN4M.Text) <= limesupeM1_4)) { picbNM1.Image = imgliM.Images[1]; } else { picbNM1.Image = imgliM.Images[0]; } if ((Convert.ToInt32(lblpunteoN4M.Text) >= limeinfeM2_4) && (Convert.ToInt32(lblpunteoN4M.Text) <= limesupeM2_4)) { picbNM1.Image = imgliM.Images[2]; } if ((Convert.ToInt32(lblpunteoN4M.Text) >= limiinfeM3_4) && (Convert.ToInt32(lblpunteoN4M.Text) <= limisupeM3_4)) { picbNM1.Image = imgliM.Images[3]; } tiempo4M--; lblpunteoN4M.Text = llamarclasslvM4.quitapunteos_segundosNM4(); if ((tiempo4M >= 0) && (Convert.ToInt32(lblpunteoN4M.Text) > 0) && (Convert.ToInt32(lblpunteoN4M.Text) >= punteminM4)) { lbltiempoN4M.Text = tiempo4M.ToString(); } else { timerN4M.Stop(); lblpunteoN4M.Text = "0"; picbN3M.Image = imgliM.Images[0]; MessageBox.Show("Lo siento ha perdido, vuela a intentarlo"); // mostrar mensaje de volver a intentarlo Niveles_MULTIPLICACION perdiste4M = new Niveles_MULTIPLICACION(); // reinicir la tab this.Hide(); perdiste4M.ShowDialog(); this.Close(); } }
private void timerN3M_Tick(object sender, EventArgs e) { int punteminM3_3 = 60000, limiinfeM1_3 = 0, limeinfeM2_3 = 0, AM3_3 = 0, limiinfeM3_3 = 0, limesupeM1_3 = 0, limesupeM2_3 = 0, limisupeM3_3 = 0; AM3_3 = (punteomax3M - punteminM3_3) / 3; limiinfeM1_3 = punteminM3_3; limeinfeM2_3 = punteminM3_3 + AM3_3; limiinfeM3_3 = punteminM3_3 + (2 * AM3_3); limesupeM1_3 = (punteminM3_3 + AM3_3) - 1; limesupeM2_3 = ((punteminM3_3 + (2 * AM3_3)) - 1); limisupeM3_3 = punteomax3M; if ((Convert.ToInt32(lblpuntosN3M.Text) >= limiinfeM1_3) && (Convert.ToInt32(lblpuntosN3M.Text) <= limesupeM1_3)) { picbN3M.Image = imgliM.Images[1]; } else { picbN3M.Image = imgliM.Images[0]; } if ((Convert.ToInt32(lblpuntosN3M.Text) >= limeinfeM2_3) && (Convert.ToInt32(lblpuntosN3M.Text) <= limesupeM2_3)) { picbN3M.Image = imgliM.Images[2]; } if ((Convert.ToInt32(lblpuntosN3M.Text) >= limiinfeM3_3) && (Convert.ToInt32(lblpuntosN3M.Text) <= limisupeM3_3)) { picbN3M.Image = imgliM.Images[3]; } tiempo3M--; lblpuntosN3M.Text = cargarLvl3Multi.quitapunteos_segundosN3M(); if ((tiempo3M >= 0) && (Convert.ToInt32(lblpuntosN3M.Text) > 0) && (Convert.ToInt32(lblpuntosN3M.Text) >= punteminM3_3)) { lbltiempoN3M.Text = tiempo3M.ToString(); } else { timerN3M.Stop(); lblpuntosN3M.Text = "0"; picbN3M.Image = imgliM.Images[0]; MessageBox.Show("Lo siento ha perdido, vuela a intentarlo"); // mostrar mensaje de volver a intentarlo Niveles_MULTIPLICACION perdiste3M = new Niveles_MULTIPLICACION(); // reinicir la tab this.Hide(); perdiste3M.ShowDialog(); this.Close(); } }
private void timerN1M_Tick(object sender, EventArgs e) { int puntemin1M = 50000, limiinfe1 = 0, limeinfe2 = 0, A1 = 0, limiinfe3 = 0, limesupe1 = 0, limesupe2 = 0, limisupe3 = 0; A1 = (punteomaxM1 - puntemin1M) / 3; limiinfe1 = puntemin1M; limeinfe2 = puntemin1M + A1; limiinfe3 = puntemin1M + (2 * A1); limesupe1 = (puntemin1M + A1) - 1; limesupe2 = ((puntemin1M + (2 * A1)) - 1); limisupe3 = punteomaxM1; if ((Convert.ToInt32(lblpuntosN1M.Text) >= limiinfe1) && (Convert.ToInt32(lblpuntosN1M.Text) <= limesupe1)) { picbNM1.Image = imgliM.Images[1]; } else { picbNM1.Image = imgliM.Images[0]; } if ((Convert.ToInt32(lblpuntosN1M.Text) >= limeinfe2) && (Convert.ToInt32(lblpuntosN1M.Text) <= limesupe2)) { picbNM1.Image = imgliM.Images[2]; } if ((Convert.ToInt32(lblpuntosN1M.Text) >= limiinfe3) && (Convert.ToInt32(lblpuntosN1M.Text) <= limisupe3)) { picbNM1.Image = imgliM.Images[3]; } tiempoM1--; lblpuntosN1M.Text = cargarclaseMultiLvl1.punteos_SEgundosN1M(); if ((tiempoM1 >= 0) && (Convert.ToInt32(lblpuntosN1M.Text) > 0) && (Convert.ToInt32(lblpuntosN1M.Text) >= puntemin1M)) { lbltiempoN1M.Text = tiempoM1.ToString(); } else { timerN1M.Stop(); lblpuntosN1M.Text = "0"; picbNM1.Image = imgliM.Images[0]; MessageBox.Show("Lo siento ha perdido, vuela a intentarlo"); // mostrar mensaje de volver a intentarlo Niveles_MULTIPLICACION perdiste1M = new Niveles_MULTIPLICACION(); // reinicir la tab this.Hide(); perdiste1M.ShowDialog(); this.Close(); } }
private void timerN2M_Tick(object sender, EventArgs e) { int punteminM2 = 55000, limiinfeM1_2 = 0, limeinfeM2_2 = 0, AM2_2 = 0, limiinfeM3_2 = 0, limesupeM1_2 = 0, limesupeM2_2 = 0, limisupeM3_2 = 0; AM2_2 = (punteomaxM2 - punteminM2) / 3; limiinfeM1_2 = punteminM2; limeinfeM2_2 = punteminM2 + AM2_2; limiinfeM3_2 = punteminM2 + (2 * AM2_2); limesupeM1_2 = (punteminM2 + AM2_2) - 1; limesupeM2_2 = ((punteminM2 + (2 * AM2_2)) - 1); limisupeM3_2 = punteomaxM2; if ((Convert.ToInt32(lblpuntosN2M.Text) >= limiinfeM1_2) && (Convert.ToInt32(lblpuntosN2M.Text) <= limesupeM1_2)) { picbN2M.Image = imgliM.Images[1]; } else { picbN2M.Image = imgliM.Images[0]; } if ((Convert.ToInt32(lblpuntosN2M.Text) >= limeinfeM2_2) && (Convert.ToInt32(lblpuntosN2M.Text) <= limesupeM2_2)) { picbN2M.Image = imgliM.Images[2]; } if ((Convert.ToInt32(lblpuntosN2M.Text) >= limiinfeM3_2) && (Convert.ToInt32(lblpuntosN2M.Text) <= limisupeM3_2)) { picbN2M.Image = imgliM.Images[3]; } tiempoM2--; lblpuntosN2M.Text = cargarclselvlM2.quitapunteos_segundosN2M(); if ((tiempoM2 >= 0) && (Convert.ToInt32(lblpuntosN2M.Text) > 0) && (Convert.ToInt32(lblpuntosN2M.Text) >= punteminM2)) { lbltiempoN2M.Text = tiempoM2.ToString(); } else { timerN2M.Stop(); lblpuntosN2M.Text = "0"; picbN2M.Image = imgliM.Images[0]; MessageBox.Show("Lo siento ha perdido, vuela a intentarlo"); // mostrar mensaje de volver a intentarlo Niveles_MULTIPLICACION perdiste2M = new Niveles_MULTIPLICACION(); // reinicir la tab this.Hide(); perdiste2M.ShowDialog(); this.Close(); } }