Ejemplo n.º 1
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);
        }
Ejemplo n.º 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);
        }