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