示例#1
0
 private void Inv4Spell2_Click(object sender, EventArgs e)
 {
     if (!TimerInv4Spell2.Enabled)
     {
         TimerInv4Spell2.Start();
     }
     else
     {
         TimerInv4Spell2.Stop(); TextInv4Spell2.Visible = false; _4Spell2 = 0;
     }
 }
示例#2
0
 private void TimerInv4Spell2_Tick(object sender, EventArgs e)
 {
     TextInv4Spell2.Visible = true;
     TextInv4Spell2.Text    = SharkiQuerys.Hechizos[7].CooldownBurn;
     if (Convert.ToInt32(SharkiQuerys.Hechizos[7].CooldownBurn) - _4Spell2 <= 0)
     {
         TimerInv4Spell2.Stop();
         TextInv4Spell2.Visible = false;
         _4Spell2 = 0;
     }
     else
     {
         _4Spell2++;
         TextInv4Spell2.Text = ((Convert.ToInt32(SharkiQuerys.Hechizos[7].CooldownBurn) - _4Spell2).ToString());
     }
 }