Esempio n. 1
0
 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();
 }
Esempio n. 2
0
File: Form1.cs Progetto: zajuruk/VP
 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();
         }
     }
 }