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