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