private void enterLetter(char c) { c = Char.ToUpper(c); if (hangmanWord.GuessLetter(c)) { updateWordMask(); } picuterBox.Load(string.Format("../../Resources/pictures/Gallows{0}.jpg", hangmanWord.WrongCount)); checkGameState(); }
private void enterLetter() { if (tbLetter.Text.Length > 0) { char c = tbLetter.Text[0]; tbLetter.Text = ""; c = Char.ToLower(c); if (hangmanWord.GuessLetter(c)) { pbWrong.Value = hangmanWord.WrongCount; updateWordMask(); updateGuessedLetters(); checkGameState(); } } }