Esempio n. 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     timeElapsed++;
     pgbLife.Value = TIME - timeElapsed;
     if (timeElapsed == TIME)
     {
         hangmanWord.EndGame();
         updateWordMask();
         timer1.Stop();
         gameResult();
     }
 }
Esempio n. 2
0
File: Form1.cs Progetto: zajuruk/VP
 private void timer1_Tick(object sender, EventArgs e)
 {
     timeElapsed++;
     pbTime.Value = TIME - timeElapsed;
     if (timeElapsed == TIME)
     {
         hangmanWord.EndGame();
         tbLetter.Enabled = false;
         btnOK.Enabled    = false;
         updateWordMask();
         timer1.Stop();
     }
     updateTime();
 }