public void StopWatchingDirectory() { if (_watcher != null) { _watcher.Dispose(); _watcher = null; } }