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(); }
public ClipboardListWindow( IClipboardListViewModel viewModel, IKeyInterceptor keyInterceptor, IWindowMessageHook windowMessageHook, IMouseWheelHook mouseWheelHook, IMainWindowHandleContainer handleContainer) { this.handleContainer = handleContainer; this.keyInterceptor = keyInterceptor; this.viewModel = viewModel; this.windowMessageHook = windowMessageHook; this.mouseWheelHook = mouseWheelHook; SourceInitialized += ClipboardListWindow_SourceInitialized; Activated += ClipboardListWindow_Activated; InitializeComponent(); SetupMouseHook(); SetupViewModel(); }