如何找出如果定时器运行?定时器

由网友(败过输过菇凉我何曾怕过)分享简介:如果我有一个System.Timers.Timer的,有一个很长的时间间隔的一个实例 - ?说1分钟,我怎么能找到,如果它被启动,而无需等待蜱If I have an instance of a System.Timers.Timer that has a long interval - say 1 minute,...

如果我有一个System.Timers.Timer的,有一个很长的时间间隔的一个实例 - ?说1分钟,我怎么能找到,如果它被启动,而无需等待蜱

If I have an instance of a System.Timers.Timer that has a long interval - say 1 minute, how can I find out if it is started without waiting for the Tick?

推荐答案

System.Timer.Timer.Enabled 应该工作,当你调用开始,它可将启用以TRUE,停止,它设置为false。

System.Timer.Timer.Enabled should work, when you call "Start" it sets Enabled to TRUE, "Stop" sets it to FALSE.

阅读全文

相关推荐

最新文章