Exemple #1
0
 internal static void StopWatcher()
 {
     if (watcher != null)
     {
         watcher.Dispose();
         watcher  = null;
         nmmlPath = null;
     }
 }
Exemple #2
0
 public void ReleaseWatcher()
 {
     if (watcher != null)
     {
         watcher.EnableRaisingEvents = false;
         watcher.Dispose();
         watcher = null;
         //TraceManager.Add("Release: " + Path);
     }
 }
Exemple #3
0
 public override void Dispose()
 {
     base.Dispose();
     if (updateTimer != null)
     {
         updateTimer.Stop();
         updateTimer.Dispose();
     }
     if (watcher != null)
     {
         watcher.EnableRaisingEvents = false;
         watcher.Dispose();
     }
 }