Exemplo n.º 1
0
        public ClipboardUserInterfaceInteractionMediator(
            IClipboardCopyInterceptor clipboardCopyInterceptor,
            IPasteCombinationDurationMediator pasteCombinationDurationMediator,
            IPasteHotkeyInterceptor pasteHotkeyInterceptor,
            IClipboardPersistanceService clipboardPersistanceService,
            IClipboardDataControlPackageFactory clipboardDataControlPackageFactory,
            IKeyInterceptor hotkeyInterceptor,
            IMouseWheelHook mouseWheelHook,
            ILogger logger,
            IClipboardInjectionService clipboardInjectionService)
        {
            this.clipboardCopyInterceptor           = clipboardCopyInterceptor;
            this.pasteCombinationDurationMediator   = pasteCombinationDurationMediator;
            this.pasteHotkeyInterceptor             = pasteHotkeyInterceptor;
            this.clipboardPersistanceService        = clipboardPersistanceService;
            this.clipboardDataControlPackageFactory = clipboardDataControlPackageFactory;
            this.hotkeyInterceptor         = hotkeyInterceptor;
            this.mouseWheelHook            = mouseWheelHook;
            this.logger                    = logger;
            this.clipboardInjectionService = clipboardInjectionService;

            clipboardPackages = new List <IClipboardDataControlPackage>();

            SetupHotkeyInterceptor();
            SetupMouseHook();
        }
 static void RaiseHotkeyFired(IPasteHotkeyInterceptor fakePasteHotkeyInterceptor)
 {
     fakePasteHotkeyInterceptor.HotkeyFired += Raise.EventWith(
         fakePasteHotkeyInterceptor,
         new HotkeyFiredArgument(
             Key.V,
             true));
 }
Exemplo n.º 3
0
 static void RaiseHotkeyFired(IPasteHotkeyInterceptor fakePasteHotkeyInterceptor)
 {
     fakePasteHotkeyInterceptor.HotkeyFired += Raise.EventWith(
                     fakePasteHotkeyInterceptor,
                     new HotkeyFiredArgument(
                         KeyboardNativeApi.VK_KEY_V,
                         true));
 }
 public ClipboardPasteService(
     IPasteHotkeyInterceptor pasteHotkeyInterceptor,
     ILogger logger,
     IMainWindowHandleContainer handleContainer)
 {
     this.pasteHotkeyInterceptor = pasteHotkeyInterceptor;
     this.logger = logger;
     this.handleContainer = handleContainer;
 }
        public PasteDetectionHandler(
            IKeyboardDominanceWatcher keyboardDominanceWatcher,
            IPasteHotkeyInterceptor pasteHotkeyInterceptor)
        {
            this.keyboardDominanceWatcher = keyboardDominanceWatcher;
            this.pasteHotkeyInterceptor   = pasteHotkeyInterceptor;

            SetupPasteHotkeyInterceptor();
        }
 public ClipboardPasteService(
     IPasteHotkeyInterceptor pasteHotkeyInterceptor,
     ILogger logger,
     IMainWindowHandleContainer handleContainer)
 {
     this.pasteHotkeyInterceptor = pasteHotkeyInterceptor;
     this.logger          = logger;
     this.handleContainer = handleContainer;
 }
        public ClipboardUserInterfaceMediator(
            IClipboardCopyInterceptor clipboardCopyInterceptor,
            IPasteCombinationDurationMediator pasteCombinationDurationMediator,
            IPasteHotkeyInterceptor pasteHotkeyInterceptor,
            IClipboardDataControlPackageFactory clipboardDataControlPackageFactory)
        {
            this.clipboardCopyInterceptor           = clipboardCopyInterceptor;
            this.pasteCombinationDurationMediator   = pasteCombinationDurationMediator;
            this.pasteHotkeyInterceptor             = pasteHotkeyInterceptor;
            this.clipboardDataControlPackageFactory = clipboardDataControlPackageFactory;

            clipboardPackages = new List <IClipboardDataControlPackage>();
        }
        public ClipboardUserInterfaceMediator(
            IClipboardCopyInterceptor clipboardCopyInterceptor,
            IPasteCombinationDurationMediator pasteCombinationDurationMediator,
            IPasteHotkeyInterceptor pasteHotkeyInterceptor,
            IClipboardDataControlPackageFactory clipboardDataControlPackageFactory)
        {
            this.clipboardCopyInterceptor = clipboardCopyInterceptor;
            this.pasteCombinationDurationMediator = pasteCombinationDurationMediator;
            this.pasteHotkeyInterceptor = pasteHotkeyInterceptor;
            this.clipboardDataControlPackageFactory = clipboardDataControlPackageFactory;

            clipboardPackages = new List<IClipboardDataControlPackage>();
        }
Exemplo n.º 9
0
        public PasteCombinationDurationMediator(
            IPasteHotkeyInterceptor pasteHotkeyInterceptor,
            IConsumerThreadLoop threadLoop,
            IThreadDelay threadDelay,
            IMainThreadInvoker mainThreadInvoker,
            ILogger logger)
        {
            this.pasteHotkeyInterceptor = pasteHotkeyInterceptor;
            this.threadLoop             = threadLoop;
            this.threadDelay            = threadDelay;
            this.mainThreadInvoker      = mainThreadInvoker;
            this.logger = logger;

            threadCancellationTokenSource = new CancellationTokenSource();
        }
        public PasteCombinationDurationMediator(
            IPasteHotkeyInterceptor pasteHotkeyInterceptor,
            IConsumerThreadLoop threadLoop,
            IThreadDelay threadDelay,
            IMainThreadInvoker mainThreadInvoker,
            ILogger logger)
        {
            this.pasteHotkeyInterceptor = pasteHotkeyInterceptor;
            this.threadLoop = threadLoop;
            this.threadDelay = threadDelay;
            this.mainThreadInvoker = mainThreadInvoker;
            this.logger = logger;

            threadCancellationTokenSource = new CancellationTokenSource();
        }