public ClipboardHandleFactory(
     IMainWindowHandleContainer mainWindow,
     IClipboardNativeApi clipboardNativeApi)
 {
     this.mainWindow = mainWindow;
     this.clipboardNativeApi = clipboardNativeApi;
 }
 public ClipboardHandle(
     IClipboardNativeApi clipboardNativeApi,
     IMainWindowHandleContainer mainWindow)
 {
     this.clipboardNativeApi = clipboardNativeApi;
     clipboardNativeApi.OpenClipboard(mainWindow.Handle);
 }
 public ClipboardPasteService(
     IPasteHotkeyInterceptor pasteHotkeyInterceptor,
     ILogger logger,
     IMainWindowHandleContainer handleContainer)
 {
     this.pasteHotkeyInterceptor = pasteHotkeyInterceptor;
     this.logger = logger;
     this.handleContainer = handleContainer;
 }
 public BitmapUnwrapper(
     IImagePersistenceService imagePersistenceService,
     IClipboardNativeApi clipboardNativeApi,
     IMainWindowHandleContainer mainWindowHandleContainer)
 {
     this.imagePersistenceService = imagePersistenceService;
     this.clipboardNativeApi = clipboardNativeApi;
     this.mainWindowHandleContainer = mainWindowHandleContainer;
 }
 public MainWindowPreparationOperation(
     IClipboardListWindow mainWindow,
     IClipboardUserInterfaceInteractionMediator clipboardUserInterfaceInteractionMediator,
     IMainWindowHandleContainer handleContainer,
     IKeyInterceptor keyInterceptor,
     IWindowMessageHook windowMessageHook)
 {
     this.mainWindow = mainWindow;
     this.clipboardUserInterfaceInteractionMediator = clipboardUserInterfaceInteractionMediator;
     this.handleContainer = handleContainer;
     this.keyInterceptor = keyInterceptor;
     this.windowMessageHook = windowMessageHook;
 }
Beispiel #6
0
        public WindowMessageHook(
            IReadOnlyCollection <IWindowMessageInterceptor> windowMessageInterceptors,
            ILogger logger,
            IConsumerThreadLoop consumerLoop,
            IMainWindowHandleContainer mainWindowHandleContainer)
        {
            this.windowMessageInterceptors = windowMessageInterceptors;
            this.logger       = logger;
            this.consumerLoop = consumerLoop;
            this.mainWindowHandleContainer = mainWindowHandleContainer;

            pendingMessages         = new Queue <WindowMessageReceivedArgument>();
            cancellationTokenSource = new CancellationTokenSource();

            logger.Information(
                $"Window message hook was constructed using {windowMessageInterceptors.Count} interceptors.");
        }
        public MainWindowPreparationOperation(
            IMainWindow mainWindow,
            IClipboardUserInterfaceInteractionMediator clipboardUserInterfaceInteractionMediator,
            IMainWindowHandleContainer handleContainer,
            IKeyInterceptor keyInterceptor,
            IWindowMessageHook windowMessageHook,
            ISourceClipboardQuantityOverlay sourceClipboardQuantityOverlay)
        {
            this.mainWindow = mainWindow;
            this.clipboardUserInterfaceInteractionMediator = clipboardUserInterfaceInteractionMediator;
            this.handleContainer   = handleContainer;
            this.keyInterceptor    = keyInterceptor;
            this.windowMessageHook = windowMessageHook;
            this.sourceClipboardQuantityOverlay = sourceClipboardQuantityOverlay;

            SetupWindowMessageHook();
        }
        public WindowMessageHook(
            IReadOnlyCollection<IWindowMessageInterceptor> windowMessageInterceptors,
            ILogger logger,
            IConsumerThreadLoop consumerLoop,
            IMainWindowHandleContainer mainWindowHandleContainer)
        {
            this.windowMessageInterceptors = windowMessageInterceptors;
            this.logger = logger;
            this.consumerLoop = consumerLoop;
            this.mainWindowHandleContainer = mainWindowHandleContainer;

            pendingMessages = new Queue<WindowMessageReceivedArgument>();
            cancellationTokenSource = new CancellationTokenSource();

            logger.Information(
                $"Window message hook was constructed using {windowMessageInterceptors.Count} interceptors.");
        }
Beispiel #9
0
        public ClipboardListWindow(
            IClipboardListViewModel viewModel,
            IKeyInterceptor keyInterceptor,
            IWindowMessageHook windowMessageHook,
            IMainWindowHandleContainer handleContainer)
        {
            this.handleContainer   = handleContainer;
            this.keyInterceptor    = keyInterceptor;
            this.viewModel         = viewModel;
            this.windowMessageHook = windowMessageHook;

            SourceInitialized += ClipboardListWindow_SourceInitialized;
            Activated         += ClipboardListWindow_Activated;

            InitializeComponent();

            SetupViewModel();
        }
Beispiel #10
0
        public MainWindow(
            IMainViewModel viewModel,
            IMainWindowHandleContainer handleContainer,
            IEnvironmentInformation environmentInformation)
        {
            this.handleContainer = handleContainer;
            this.viewModel       = viewModel;

            SourceInitialized += MainWindow_SourceInitialized;

            InitializeComponent();
            SetupViewModel();

            if (environmentInformation.GetIsDebugging())
            {
                Background = Brushes.Transparent;
            }
        }
        public ClipboardListWindow(
            IClipboardListViewModel viewModel,
            IKeyInterceptor keyInterceptor,
            IWindowMessageHook windowMessageHook,
            IMainWindowHandleContainer handleContainer)
        {
            this.handleContainer = handleContainer;
            this.keyInterceptor = keyInterceptor;
            this.viewModel = viewModel;
            this.windowMessageHook = windowMessageHook;

            SourceInitialized += ClipboardListWindow_SourceInitialized;
            Activated += ClipboardListWindow_Activated;

            InitializeComponent();

            SetupViewModel();
        }
 public ClipboardHandle(
     IMainWindowHandleContainer mainWindow)
 {
     ClipboardApi.OpenClipboard(mainWindow.Handle);
 }
Beispiel #13
0
 public ClipboardHandleFactory(
     IMainWindowHandleContainer mainWindow)
 {
     this.mainWindow = mainWindow;
 }
 public ClipboardHandleFactory(
     IMainWindowHandleContainer mainWindow)
 {
     this.mainWindow = mainWindow;
 }
 public ClipboardHandle(
     IMainWindowHandleContainer mainWindow)
 {
     ClipboardApi.OpenClipboard(mainWindow.Handle);
 }