示例#1
0
 public FileEntryInfoViewModel(FileEntryViewModel fileEntryViewModel, FilePropertiesInfo fileProperties,
                               FileExplorerCommand fileExplorerCommand)
 {
     _fileExplorerCommand = fileExplorerCommand;
     FileEntryViewModel   = fileEntryViewModel;
     FilePropertiesInfo   = fileProperties;
     HashValueInfos       = new ObservableCollection <HashValueInfo>();
 }
示例#2
0
 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)));
 }
示例#4
0
 public PropertiesViewModel(FileEntryViewModel fileEntryViewModel, FilePropertiesInfo fileProperties,
                            FileExplorerCommand fileExplorerCommand)
     : this(fileEntryViewModel)
 {
     EntryInfo = new FileEntryInfoViewModel(fileEntryViewModel, fileProperties, fileExplorerCommand);
 }