private void timer1_Tick(object sender, EventArgs e) { timeElapsed++; pgbLife.Value = TIME - timeElapsed; if (timeElapsed == TIME) { hangmanWord.EndGame(); updateWordMask(); timer1.Stop(); gameResult(); } }
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(); }