示例#1
0
 public void Stop()
 {
     if (_isRuning)
     {
         _isRuning = false;
         ThreadEx.FreeTimer(Key);
     }
 }
示例#2
0
 public void Start()
 {
     if (!_isRuning)
     {
         _isRuning = true;
         Key       = ThreadEx.NewTimer(_interval, _callback, _error);
     }
 }