public ClipboardHandleFactory(
     IMainWindowHandleContainer mainWindow,
     IClipboardNativeApi clipboardNativeApi)
 {
     this.mainWindow = mainWindow;
     this.clipboardNativeApi = clipboardNativeApi;
 }
Пример #2
0
 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;
 }
Пример #4
0
 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;
 }
Пример #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.");
        }
Пример #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();
        }
Пример #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();
        }
Пример #12
0
 public ClipboardHandle(
     IMainWindowHandleContainer mainWindow)
 {
     ClipboardApi.OpenClipboard(mainWindow.Handle);
 }
Пример #13
0
 public ClipboardHandleFactory(
     IMainWindowHandleContainer mainWindow)
 {
     this.mainWindow = mainWindow;
 }
Пример #14
0
 public ClipboardHandleFactory(
     IMainWindowHandleContainer mainWindow)
 {
     this.mainWindow = mainWindow;
 }
Пример #15
0
 public ClipboardHandle(
     IMainWindowHandleContainer mainWindow)
 {
     ClipboardApi.OpenClipboard(mainWindow.Handle);
 }