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