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