예제 #1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     timeElapsed++;
     pgbLife.Value = TIME - timeElapsed;
     if (timeElapsed == TIME)
     {
         hangmanWord.EndGame();
         updateWordMask();
         timer1.Stop();
         gameResult();
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: 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();
 }