Exemplo n.º 1
0
 private void tickAction(object sender, EventArgs e)
 {
     //every tick, decrement;
     time--;
     if (time < 1)
     {
         this.Stop();
         SayThis(championPanelCopy.ChampionName + "'s Flash is back up!");
         time = goalTime;
         //update buttons
         //parentProgBar.UpdateProgBar(time);
         //hit reset in parent , null because caller and event are unnecessary
         championPanelCopy.ResetClick(null, null);
     }
     else
     {
         //update progress bars
         parentProgBar.UpdateProgBar(time);
     }
 }