示例#1
0
 private void Inv4Spell1_Click(object sender, EventArgs e)
 {
     if (!TimerInv4Spell1.Enabled)
     {
         TimerInv4Spell1.Start();
     }
     else
     {
         TimerInv4Spell1.Stop(); TextInv4Spell1.Visible = false; _4Spell1 = 0;
     }
 }
示例#2
0
 private void TimerInv4Spell1_Tick(object sender, EventArgs e)
 {
     TextInv4Spell1.Visible = true;
     TextInv4Spell1.Text    = SharkiQuerys.Hechizos[6].CooldownBurn;
     if (Convert.ToInt32(SharkiQuerys.Hechizos[6].CooldownBurn) - _4Spell1 <= 0)
     {
         TimerInv4Spell1.Stop();
         TextInv4Spell1.Visible = false;
         _4Spell1 = 0;
     }
     else
     {
         _4Spell1++;
         TextInv4Spell1.Text = ((Convert.ToInt32(SharkiQuerys.Hechizos[6].CooldownBurn) - _4Spell1).ToString());
     }
 }