private void Inv3Spell1_Click(object sender, EventArgs e) { if (!TimerInv3Spell1.Enabled) { TimerInv3Spell1.Start(); } else { TimerInv3Spell1.Stop(); TextInv3Spell1.Visible = false; _3Spell1 = 0; } }
private void TimerInv3Spell1_Tick(object sender, EventArgs e) { TextInv3Spell1.Visible = true; TextInv3Spell1.Text = SharkiQuerys.Hechizos[4].CooldownBurn; if (Convert.ToInt32(SharkiQuerys.Hechizos[4].CooldownBurn) - _3Spell1 <= 0) { TimerInv3Spell1.Stop(); TextInv3Spell1.Visible = false; _3Spell1 = 0; } else { _3Spell1++; TextInv3Spell1.Text = ((Convert.ToInt32(SharkiQuerys.Hechizos[4].CooldownBurn) - _3Spell1).ToString()); } }