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;
 }
Пример #2
0
        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;

            SetupWindowMessageHook();
        }
        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 UserInterfaceViewModel(
            IClipboardUserInterfaceInteractionMediator clipboardUserInterfaceInteractionMediator,
            IPackageToActionSwitch packageToActionSwitch,
            ISettingsViewModel settingsViewModel,
            ILogger logger)
        {
            Elements = new ObservableCollection <IClipboardDataControlPackage>();
            Actions  = new ObservableCollection <IActionViewModel>();

            singlePasteLock = new SemaphoreSlim(1);

            Actions.CollectionChanged += Actions_CollectionChanged;

            this.clipboardUserInterfaceInteractionMediator = clipboardUserInterfaceInteractionMediator;
            this.settingsViewModel = settingsViewModel;
            this.logger            = logger;

            SetUpClipboardUserInterfaceInteractionMediator();

            packageToActionSwitch.PrepareBinder(this);
        }