public FileSystemNodeViewModelFactory(
     IFileSystemNodeOpeningBehavior fileOpeningBehavior,
     IFileSystemNodeOpeningBehavior directoryOpeningBehavior,
     IFileSizeFormatter fileSizeFormatter,
     IPathService pathService,
     IFilesOperationsMediator filesOperationsMediator,
     IFileSystemNodePropertiesBehavior filePropertiesBehavior,
     IFileSystemNodePropertiesBehavior directoryPropertiesBehavior,
     IFileService fileService,
     IDirectoryService directoryService,
     IFileSystemNodeFacade fileSystemNodeFacade,
     IFileTypeMapper fileTypeMapper)
 {
     _fileOpeningBehavior      = fileOpeningBehavior;
     _directoryOpeningBehavior = directoryOpeningBehavior;
     _fileSizeFormatter        = fileSizeFormatter;
     _pathService                 = pathService;
     _filesOperationsMediator     = filesOperationsMediator;
     _filePropertiesBehavior      = filePropertiesBehavior;
     _directoryPropertiesBehavior = directoryPropertiesBehavior;
     _fileService                 = fileService;
     _directoryService            = directoryService;
     _fileSystemNodeFacade        = fileSystemNodeFacade;
     _fileTypeMapper              = fileTypeMapper;
 }
 public NodeViewModel(
     IFileSystemNodeOpeningBehavior fileSystemNodeOpeningBehavior,
     IFileSystemNodePropertiesBehavior fileSystemNodePropertiesBehavior,
     IFileSystemNodeFacade fileSystemNodeFacade,
     bool shouldShowOpenSubmenu)
     : base(
         fileSystemNodeOpeningBehavior,
         fileSystemNodePropertiesBehavior,
         fileSystemNodeFacade,
         shouldShowOpenSubmenu)
 {
 }
Ejemplo n.º 3
0
        public DirectoryViewModel(
            IFileSystemNodeOpeningBehavior fileSystemNodeOpeningBehavior,
            IFileSystemNodePropertiesBehavior fileSystemNodePropertiesBehavior,
            IFileSystemNodeFacade fileSystemNodeFacade,
            bool shouldShowOpenSubmenu,
            IFilesOperationsMediator filesOperationsMediator)
            : base(
                fileSystemNodeOpeningBehavior,
                fileSystemNodePropertiesBehavior,
                fileSystemNodeFacade,
                shouldShowOpenSubmenu)
        {
            _filesOperationsMediator = filesOperationsMediator;

            OpenInNewTabCommand = ReactiveCommand.Create(OpenInNewTab);
            OpenInNewTabOnOppositePanelCommand = ReactiveCommand.Create(OpenInNewTabOnOppositePanel);
        }
        protected FileSystemNodeViewModelBase(
            IFileSystemNodeOpeningBehavior fileSystemNodeOpeningBehavior,
            IFileSystemNodePropertiesBehavior fileSystemNodePropertiesBehavior,
            IFileSystemNodeFacade fileSystemNodeFacade,
            bool shouldShowOpenSubmenu)
        {
            _fileSystemNodeOpeningBehavior    = fileSystemNodeOpeningBehavior;
            _fileSystemNodePropertiesBehavior = fileSystemNodePropertiesBehavior;
            _fileSystemNodeFacade             = fileSystemNodeFacade;

            ShouldShowOpenSubmenu = shouldShowOpenSubmenu;

            OpenCommand            = ReactiveCommand.Create(Open);
            OpenWithCommand        = ReactiveCommand.Create(OpenWithAsync);
            PackCommand            = ReactiveCommand.CreateFromTask(PackAsync);
            ExtractCommand         = ReactiveCommand.CreateFromTask <ExtractCommandType>(ExtractAsync);
            RenameCommand          = ReactiveCommand.Create(Rename);
            RenameInDialogCommand  = ReactiveCommand.CreateFromTask(RenameInDialogAsync);
            CopyToClipboardCommand = ReactiveCommand.CreateFromTask(CopyToClipboardAsync);
            DeleteCommand          = ReactiveCommand.CreateFromTask(DeleteAsync);
            CopyCommand            = ReactiveCommand.CreateFromTask(CopyAsync);
            MoveCommand            = ReactiveCommand.CreateFromTask(MoveAsync);
            ShowPropertiesCommand  = ReactiveCommand.CreateFromTask(ShowPropertiesAsync);
        }