protected virtual void OnDirectoryFinded(DirectoryInfo directoryInfo, bool isFiltered = false) { var arg = new ItemFindedArg <FileSystemInfo>(directoryInfo); _argList.Add(arg); if (isFiltered) { FilteredDirectoryFinded?.Invoke(this, arg); } else { DirectoryFinded?.Invoke(this, arg); } }
protected virtual void OnFileFinded(FileInfo fileInfo, bool isFiltered = false) { var arg = new ItemFindedArg <FileSystemInfo>(fileInfo); _argList.Add(arg); if (isFiltered) { FilteredFileFinded?.Invoke(this, arg); } else { FileFinded?.Invoke(this, arg); } }