Advertisement
ada1711

Untitled

Apr 28th, 2023
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. private void timerCzasPodgladu_Tick(object sender, EventArgs e)
  2. {
  3. gameSettings.czasPodgladu--;
  4.  
  5. lblStartInfo.Text = $"Początek gry za {gameSettings.czasPodgladu}.";
  6.  
  7. if(gameSettings.czasPodgladu <= 0)
  8. {
  9. lblStartInfo.Visible = false;
  10.  
  11. foreach (Control kontrolka in panelKart.Controls)
  12. {
  13. MemoryCard card = (MemoryCard)kontrolka;
  14. card.Zakryj();
  15. }
  16. timerCzasPodgladu.Stop();
  17. timerCzasGry.Start();
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement