示例#1
0
        /// <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;
        }
示例#2
0
        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;
            }
        }
示例#3
0
        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();
        }
示例#4
0
        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();
            }
        }
示例#5
0
 private void button_Notas_Click(object sender, EventArgs e)
 {
     Sonido.Click();
     System.Diagnostics.Process.Start("https://github.com/ezrillex/Ahorcado/blob/master/CHANGELOG.md");
 }
示例#6
0
 private void button1_Click(object sender, EventArgs e)
 {
     Sonido.Click();
     this.Close();
 }