public static void EnableLocalDirectory(bool enable) { _localWatcher.EnableRaisingEvents = enable; _localWatcher.Path = Directory.GetCurrentDirectory(); if (enable) RefreshLocal(); else _resources.RemoveAll(r => r.Location == Location.Local); }