void HandleElapsed(object sender, ElapsedEventArgs e) { if (gameInterval <= 0) { if (ButtonItem.seznamVisibleButtons.Count != 0) { casovac.Stop(); ButtonItem.seznamVisibleButtons.Clear(); gameFail(); } else { gameInterval = gameIntervalBase; timeSucccess(); ButtonItem oButtonItem = new ButtonItem(this, this); gameIntervalBase--; } } else { gameInterval--; } }
void HandleElapsed (object sender, ElapsedEventArgs e) { if (gameInterval <= 0) { if (ButtonItem.seznamVisibleButtons.Count != 0) { casovac.Stop (); ButtonItem.seznamVisibleButtons.Clear (); gameFail (); } else { gameInterval = gameIntervalBase; timeSucccess (); ButtonItem oButtonItem = new ButtonItem (this,this); gameIntervalBase--; } } else { gameInterval--; } }