If you are using System.Timers.Timer
stopping is performed by one of the options:
//options 1
timer.Enabled = false
//option 2
timer.Stop()
if you are using System.Threading.Timer
, use this method
timer.Change(Timeout.Infinite , Timeout.Infinite)
if you are using System.Windows.Forms.Timer
, use this method
timer.Stop();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…