void watcher_Changed(VirtualWatcherChangeTypes watcherChangeTypes, string url)
        {
            if (!IsExtensionSupported(url))
                return;

            if ((watcherChangeTypes & VirtualWatcherChangeTypes.Created) != 0)
                Files.Add(url);

            if ((watcherChangeTypes & VirtualWatcherChangeTypes.Deleted) != 0)
                Files.Remove(url);

            //if ((watcherChangeTypes & WatcherChangeTypes.Renamed) != 0)
            //    Files.Remove(url);
        }
Example #2
0
        void watcher_Changed(VirtualWatcherChangeTypes watcherChangeTypes, string url)
        {
            if (!IsExtensionSupported(url))
            {
                return;
            }

            if ((watcherChangeTypes & VirtualWatcherChangeTypes.Created) != 0)
            {
                Files.Add(url);
            }

            if ((watcherChangeTypes & VirtualWatcherChangeTypes.Deleted) != 0)
            {
                Files.Remove(url);
            }

            //if ((watcherChangeTypes & WatcherChangeTypes.Renamed) != 0)
            //    Files.Remove(url);
        }