启动后,即使定时器处于如下状态:
Timer.AutoReset = false;改变 Timer.Interval 仍会引起定时器重新启动计时
Timer.Enabled = false;
参考:
https://social.msdn.microsoft.com/Forums/en-US/6b2181e0-94c5-499f-a9ae-cbabd4d016da/changing-interval-of-timer-while-enabled?forum=csharpgeneral
https://stackoverflow.com/questions/5478442/system-timers-timer-interval-resetting-causing-restart
No comments:
Post a Comment