Пример #1
0
        private void OnWatcherEvent(object sender, FileSystemEventArgs e)
        {
            bool isFile = !File.GetAttributes(e.FullPath).HasFlag(FileAttributes.Directory);

            WatchedDirectoryEventArgs args = new WatchedDirectoryEventArgs(e.ChangeType, isFile, e.FullPath);
            _watcherEvent(this, args);
        }
Пример #2
0
        private void OnWatcherEvent(object sender, FileSystemEventArgs e)
        {
            bool isFile = !File.GetAttributes(e.FullPath).HasFlag(FileAttributes.Directory);

            WatchedDirectoryEventArgs args = new WatchedDirectoryEventArgs(e.ChangeType, isFile, e.FullPath);

            _watcherEvent(this, args);
        }