public FileEntryInfoViewModel(FileEntryViewModel fileEntryViewModel, FilePropertiesInfo fileProperties, FileExplorerCommand fileExplorerCommand) { _fileExplorerCommand = fileExplorerCommand; FileEntryViewModel = fileEntryViewModel; FilePropertiesInfo = fileProperties; HashValueInfos = new ObservableCollection <HashValueInfo>(); }
public RemoteFileSystem(FileExplorerCommand fileExplorerCommand) { _fileExplorerCommand = fileExplorerCommand; _fileExplorerCommand.ProcessingEntryAdded += FileExplorerCommandOnProcessingEntryAdded; _fileExplorerCommand.ProcessingEntryUpdateReceived += FileExplorerCommandOnProcessingEntryUpdateReceived; _cachedEntries = new ConcurrentDictionary <string, EntriesInfo>(); ImageProvider = new ImageProvider(); }
public FileTransferManagerViewModel(FileExplorerCommand fileExplorerCommand) { _fileQueue = new Queue <FileTransferTask>(); _fileExplorerCommand = fileExplorerCommand; _downloaders = new Dictionary <Guid, Downloader>(); FileTransferTasks = new ObservableCollection <FileTransferTask>(); CollectionView = CollectionViewSource.GetDefaultView(FileTransferTasks); CollectionView.GroupDescriptions.Add(new PropertyGroupDescription(nameof(FileTransferTask.IsFinished))); }
public PropertiesViewModel(FileEntryViewModel fileEntryViewModel, FilePropertiesInfo fileProperties, FileExplorerCommand fileExplorerCommand) : this(fileEntryViewModel) { EntryInfo = new FileEntryInfoViewModel(fileEntryViewModel, fileProperties, fileExplorerCommand); }