Exemplo n.º 1
0
 public UploadImageAction(
     IFileTypeInterpreter fileTypeInterpreter,
     IAsyncFilter asyncFilter)
 {
     this.fileTypeInterpreter = fileTypeInterpreter;
     this.asyncFilter         = asyncFilter;
 }
 public PasteAsPlainTextAction(
     IClipboardInjectionService clipboardInjectionService,
     IAsyncFilter asyncFilter)
 {
     this.clipboardInjectionService = clipboardInjectionService;
     this.asyncFilter = asyncFilter;
 }
Exemplo n.º 3
0
 public UploadImageAction(
     IFileTypeInterpreter fileTypeInterpreter,
     IAsyncFilter asyncFilter)
 {
     this.fileTypeInterpreter = fileTypeInterpreter;
     this.asyncFilter = asyncFilter;
 }
 public PasteAsPlainTextAction(
     IClipboardInjectionService clipboardInjectionService,
     IAsyncFilter asyncFilter)
 {
     this.clipboardInjectionService = clipboardInjectionService;
     this.asyncFilter = asyncFilter;
 }
        public ClipboardListViewModel(
            IAction[] allActions,
            IClipboardUserInterfaceMediator clipboardUserInterfaceMediator,

            // ReSharper disable once SuggestBaseTypeForParameter
            IKeyInterceptor hotkeyInterceptor,
            IAsyncListDictionaryBinder <IClipboardDataControlPackage, IAction> packageActionBinder,
            IAsyncFilter asyncFilter,
            IPerformanceHandleFactory performanceHandleFactory,
            IUserInterfaceThread userInterfaceThread)
        {
            Elements = new ObservableCollection <IClipboardDataControlPackage>();
            Actions  = new ObservableCollection <IAction>();

            Actions.CollectionChanged += Actions_CollectionChanged;

            var pasteAction = allActions.OfType <IPasteAction>()
                              .Single();

            this.allActions = allActions.Where(x => x != pasteAction)
                              .ToArray();
            this.clipboardUserInterfaceMediator = clipboardUserInterfaceMediator;
            this.packageActionBinder            = packageActionBinder;
            this.asyncFilter = asyncFilter;
            this.performanceHandleFactory = performanceHandleFactory;
            this.userInterfaceThread      = userInterfaceThread;

            PreparePackageBinder(pasteAction);

            RegisterMediatorEvents(clipboardUserInterfaceMediator);
            RegisterKeyEvents(hotkeyInterceptor);
        }
Exemplo n.º 6
0
 public OpenLinkAction(
     ILinkParser linkParser,
     IProcessManager processManager,
     IAsyncFilter asyncFilter)
 {
     this.linkParser     = linkParser;
     this.processManager = processManager;
     this.asyncFilter    = asyncFilter;
 }
Exemplo n.º 7
0
 public ZipFilesAction(
     IAsyncFilter asyncFilter,
     IFileManager fileManager,
     IClipboardInjectionService clipboardInjectionService)
 {
     this.asyncFilter = asyncFilter;
     this.fileManager = fileManager;
     this.clipboardInjectionService = clipboardInjectionService;
 }
Exemplo n.º 8
0
 public OpenLinkAction(
     ILinkParser linkParser,
     IProcessManager processManager,
     IAsyncFilter asyncFilter)
 {
     this.linkParser = linkParser;
     this.processManager = processManager;
     this.asyncFilter = asyncFilter;
 }
Exemplo n.º 9
0
 public ZipFilesAction(
     IAsyncFilter asyncFilter,
     IFileManager fileManager,
     IClipboardInjectionService clipboardInjectionService)
 {
     this.asyncFilter = asyncFilter;
     this.fileManager = fileManager;
     this.clipboardInjectionService = clipboardInjectionService;
 }
        public SelectedElementToActionsSwitchMechanism(
            IAction[] allActions,
            IAsyncFilter asyncFilter,
            IAsyncListDictionaryBinder<IClipboardDataControlPackage, IAction> packageActionBinder)
        {
            this.asyncFilter = asyncFilter;
            this.packageActionBinder = packageActionBinder;

            PrepareActions(allActions);
        }
Exemplo n.º 11
0
        public Pipeline <T> Add(IAsyncFilter <T> filter)
        {
            if (filter == null)
            {
                throw new ArgumentNullException(nameof(filter));
            }

            _filters.Add(filter);
            return(this);
        }
Exemplo n.º 12
0
        public SelectedElementToActionsSwitchMechanism(
            IAction[] allActions,
            IAsyncFilter asyncFilter,
            IAsyncListDictionaryBinder <IClipboardDataControlPackage, IActionViewModel> packageActionBinder)
        {
            this.asyncFilter         = asyncFilter;
            this.packageActionBinder = packageActionBinder;

            PrepareActions(allActions);
        }
Exemplo n.º 13
0
 public LinkParser(
     IFileTypeInterpreter fileTypeInterpreter,
     IDomainNameResolver domainNameResolver,
     IAsyncFilter asyncFilter,
     IPerformanceHandleFactory performanceHandleFactory)
 {
     this.fileTypeInterpreter = fileTypeInterpreter;
     this.domainNameResolver = domainNameResolver;
     this.asyncFilter = asyncFilter;
     this.performanceHandleFactory = performanceHandleFactory;
 }
Exemplo n.º 14
0
 public LinkParser(
     IFileTypeInterpreter fileTypeInterpreter,
     IDomainNameResolver domainNameResolver,
     IAsyncFilter asyncFilter,
     IPerformanceHandleFactory performanceHandleFactory)
 {
     this.fileTypeInterpreter      = fileTypeInterpreter;
     this.domainNameResolver       = domainNameResolver;
     this.asyncFilter              = asyncFilter;
     this.performanceHandleFactory = performanceHandleFactory;
 }
Exemplo n.º 15
0
 public CopyImageLinkAction(
     ILinkParser linkParser,
     IImageFileInterpreter imageFileInterpreter,
     IDownloader downloader,
     IClipboardInjectionService clipboardInjectionService,
     IAsyncFilter asyncFilter)
 {
     this.asyncFilter               = asyncFilter;
     this.linkParser                = linkParser;
     this.downloader                = downloader;
     this.imageFileInterpreter      = imageFileInterpreter;
     this.clipboardInjectionService = clipboardInjectionService;
 }
Exemplo n.º 16
0
 public CopyImageLinkAction(
     ILinkParser linkParser,
     IImageFileInterpreter imageFileInterpreter,
     IDownloader downloader,
     IClipboardInjectionService clipboardInjectionService,
     IAsyncFilter asyncFilter)
 {
     this.asyncFilter = asyncFilter;
     this.linkParser = linkParser;
     this.downloader = downloader;
     this.imageFileInterpreter = imageFileInterpreter;
     this.clipboardInjectionService = clipboardInjectionService;
 }
Exemplo n.º 17
0
 public ZipFilesAction(IAsyncFilter asyncFilter)
 {
     this.asyncFilter = asyncFilter;
 }
Exemplo n.º 18
0
 public ZipFilesAction(IAsyncFilter asyncFilter)
 {
     this.asyncFilter = asyncFilter;
 }