private void buttonJugar_Click(object sender, EventArgs e) { this.Hide(); con.Close(); Dificultad juego = new Dificultad(name); juego.ShowDialog(); this.Close(); }
private void buttonJugar_Click_1(object sender, EventArgs e) { string name = "Invitado"; this.Hide(); if (textBoxNombre.Text != "") { name = textBoxNombre.Text; } Dificultad juego = new Dificultad(name); juego.ShowDialog(); this.Close(); }