ARCed.Helpers.ResourceHelper.EnableLocalDirectory C# (CSharp) Method

EnableLocalDirectory() public static method

Enables/disables local directory searching
public static EnableLocalDirectory ( bool enable ) : void
enable bool Flag to enable or disable local searching
return void
        public static void EnableLocalDirectory(bool enable)
        {
            _localWatcher.EnableRaisingEvents = enable;
            _localWatcher.Path = Directory.GetCurrentDirectory();
            if (enable)
                RefreshLocal();
            else
                _resources.RemoveAll(r => r.Location == Location.Local);
        }