/// <summary> /// Play button press which hides the button and shows labels and keyboard buttons. Initializes the first word. Sets the game started flag to true. /// </summary> private void PlayButton_Click(object sender, EventArgs e) { Sonido.Click(); // Hide Play button PlayButton.Visible = false; PlayButton.Enabled = false; // Show keyboard foreach (Button b in GameButtons) { b.Visible = true; b.Enabled = true; } // Show Game labels foreach (Label l in GameLabels) { l.Visible = true; l.Enabled = true; } InitializeWord(); Data.GameStarted = true; }
private void checkBox_antialiasing_CheckedChanged(object sender, EventArgs e) { Sonido.Click(); if (checkBox_antialiasing.Checked == true) { Data.AntialiasEnabled = true; } else if (checkBox_antialiasing.Checked == false) { Data.AntialiasEnabled = false; } }
private void checkBox_darkmode_CheckedChanged(object sender, EventArgs e) { Sonido.Click(); if (checkBox_darkmode.Checked is true) { Data.DarkMode = true; } else if (checkBox_darkmode.Checked is false) { Data.DarkMode = false; } Data.RecentlyChangedTheme = true; Data.UpdateDarkMode(); }
private void button_ResetScore_Click(object sender, EventArgs e) { Sonido.Click(); DialogResult dialogResult = MessageBox.Show ("Esta accion reiniciara tu puntaje permanente a 0. ¿Estas seguro que quieres continuar?", "Confirmar reinicio de puntaje", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); Sonido.Click(); if (dialogResult == DialogResult.Yes) { Data.Puntaje = 0; MessageBox.Show ("El puntaje ha sido reiniciado a 0", "Información", MessageBoxButtons.OK, MessageBoxIcon.Information); Sonido.Click(); } }
private void button_Notas_Click(object sender, EventArgs e) { Sonido.Click(); System.Diagnostics.Process.Start("https://github.com/ezrillex/Ahorcado/blob/master/CHANGELOG.md"); }
private void button1_Click(object sender, EventArgs e) { Sonido.Click(); this.Close(); }