Beispiel #1
0
 public void ClearDirectory()
 {
     if (_watcher != null)
     {
         _watcher.EnableRaisingEvents = false;
         _watcher.Changed            -= Watcher_Changed;
         _watcher.Created            -= Watcher_Created;
         _watcher.Deleted            -= Watcher_Deleted;
         _watcher.Renamed            -= Watcher_Renamed;
         _watcher.Dispose();
         _directory = null;
         _watcher   = null;
         _holder    = null;
         Textures.DisposeEverything();
     }
 }