private void ButtonReturn_Click(object sender, EventArgs e) { FormMenuPrincipal formMenuPrincipal = new FormMenuPrincipal(); this.Close(); formMenuPrincipal.Show(); }
void ExitThisForm() { this.Close(); FormMenuPrincipal formMenuPrincipal = new FormMenuPrincipal(); formMenuPrincipal.Show(); }
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(); } }