private FileSystemInfo ChackFileSystemInfo(FileSystemInfo file) { if (file is DirectoryInfo) { FilterDirectoryFinded?.Invoke(this, new FileSystemVisitorEventArgs() { Name = file.Name, FullPath = file.FullName }); } else { FilterFileFinded?.Invoke(this, new FileSystemVisitorEventArgs() { Name = file.Name, FullPath = file.FullName }); } return(file); }
protected virtual void OnFilterFileFinded(EventsProgressArgs e) { FilterFileFinded?.Invoke(this, e); }