public static void StopVideosShareWatcher() { if (_watcher != null) { _watcher.SetMonitoring(false); _watcher.ChangeMonitoring(false); _watcher = null; } }
public static void StartVideosShareWatcher() { if (_watcher == null) { _watcher = new VideosShareWatcherHelper(); _watcher.SetMonitoring(true); _watcher.StartMonitor(); } else { if (!_watcher.IsMonitoring()) { _watcher.SetMonitoring(true); _watcher.StartMonitor(); } } }