Esempio n. 1
0
 // Timers.
 private void Inv1Spell1_Click(object sender, EventArgs e)
 {
     if (!TimerInv1Spell1.Enabled)
     {
         TimerInv1Spell1.Start();
     }
     else
     {
         TimerInv1Spell1.Stop(); TextInv1Spell1.Visible = false; _1Spell1 = 0;
     }
 }
Esempio n. 2
0
 private void TimerInv1Spell1_Tick(object sender, EventArgs e)
 {
     TextInv1Spell1.Visible = true;
     TextInv1Spell1.Text    = SharkiQuerys.Hechizos[0].CooldownBurn;
     if (Convert.ToInt32(SharkiQuerys.Hechizos[0].CooldownBurn) - _1Spell1 <= 0)
     {
         TimerInv1Spell1.Stop();
         TextInv1Spell1.Visible = false;
         _1Spell1 = 0;
     }
     else
     {
         _1Spell1++;
         TextInv1Spell1.Text = ((Convert.ToInt32(SharkiQuerys.Hechizos[0].CooldownBurn) - _1Spell1).ToString());
     }
 }