Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool isNotGuessed = false;

            for (int i = 0; i < isGuessed.Count; i++)
            {
                if (!isGuessed[i])
                {
                    isNotGuessed = true;
                }
            }
            if (isNotGuessed)
            {
                words.Add(curWord);
            }
            if (words.Count > 0)
            {
                StartHangman();
            }
            else
            {
                Form f = new FormKiller(this, "Good job! Now you are closer to Irish Treasure!");
                f.Show();
            }
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormKiller f = new FormKiller(this, "Good job! You’re one step closer to find the treasure!");

            f.Show();
        }