public void terminoJuego() { MenuInicial frm1 = new MenuInicial(); if (frm2.gamer.Vidas == 0) { MessageBox.Show("¡Perdiste! Tu puntaje final es: " + frm2.gamer.Puntaje.ToString()); timer1.Stop(); frm2.guardarJugador(); this.Hide(); frm1.Show(); } if (frm2.gamer.ContadorPreguntas == preguntas.Count()) { MessageBox.Show("¡Ganaste! Tu puntaje final es: " + frm2.gamer.Puntaje.ToString()); timer1.Stop(); frm2.guardarJugador(); this.Hide(); frm1.Show(); } }
private void Volver_Click(object sender, EventArgs e) { frm1.Show(); this.Hide(); }