Ejemplo n.º 1
0
        public QuickPadCommands(
            IShowGoToCommand <TStorageFile, TStream> showGotoCommand
            , IShareCommand <TStorageFile, TStream> shareCommand
            , ICutCommand <TStorageFile, TStream> cutCommand
            , ICopyCommand <TStorageFile, TStream> copyCommand
            , IPasteCommand <TStorageFile, TStream> pasteCommand
            , IDeleteCommand <TStorageFile, TStream> deleteCommand
            , IContentChangedCommand <TStorageFile, TStream> contentChangedCommand
            , IEmojiCommand <TStorageFile, TStream> emojiCommand
            , ICompactOverlayCommand <TStorageFile, TStream> compactOverlayCommand
            , IRateAndReviewCommand <TStorageFile, TStream> rateAndReviewCommand)
        {
            _commands = this;

            ShareCommand          = shareCommand;
            CutCommand            = cutCommand;
            CopyCommand           = copyCommand;
            PasteCommand          = pasteCommand;
            DeleteCommand         = deleteCommand;
            ContentChangedCommand = contentChangedCommand;
            EmojiCommand          = emojiCommand;
            CompactOverlayCommand = compactOverlayCommand;
            RateAndReviewCommand  = rateAndReviewCommand;
            ShowGoToCommand       = showGotoCommand;
        }
 public RootCommand(
     IBurnCommand burnCommand,
     ICopyCommand copyCommand,
     ILogFactory logFactory,
     ITransferCommand transferCommand)
 {
     _app             = new CommandLineApplication(throwOnUnexpectedArg: false);
     _burnCommand     = burnCommand;
     _copyCommand     = copyCommand;
     _log             = logFactory.CreateLog(this);
     _transferCommand = transferCommand;
 }
Ejemplo n.º 3
0
 public FileSystemService(
     IFileSystem fileSystem,
     IGetFolderSizeCommand <GetFolderSizeResult, long, GetFolderSizeState> getFolderSizeCommand,
     IUploadFileCommand <UploadFileResult, object, UploadFileState> uploadFileCommand,
     IRemoveCommand <RemoveResult, bool, RemoveState> removeCommand,
     IDownloadFileCommand <DownloadFileResult, Stream, DownloadFileState> downloadFileCommand,
     IRenameCommand <RenameResult, object, RenameState> renameCommand,
     ICreateFolderCommand <CreateFolderResult, object, CreateFolderState> createFolderCommand,
     ICopyCommand <CopyResult, object, CopyState> copyCommand
     )
 {
     _fileSystem           = fileSystem;
     _getFolderSizeCommand = getFolderSizeCommand;
     _uploadFileCommand    = uploadFileCommand;
     _removeCommand        = removeCommand;
     _downloadFileCommand  = downloadFileCommand;
     _renameCommand        = renameCommand;
     _createFolderCommand  = createFolderCommand;
     _copyCommand          = copyCommand;
 }
Ejemplo n.º 4
0
 public CopyCommand(ICopyCommand command)
 {
     originalFullPath = command.SourceFullPath;
     destinationFullPath = command.FullPath;
 }
Ejemplo n.º 5
0
 public CopyCommand(ICopyCommand command)
 {
     originalFullPath    = command.SourceFullPath;
     destinationFullPath = command.FullPath;
 }