예제 #1
0
        public WindowsHookManager(IEventAggregator eventAggregator,
                                  ApplicationModel applicationModel, ProfileManager profileManager, ProfileSwitchKeyTableManager profileSwitchKeyTable)
        {
            _eventAggregator       = eventAggregator;
            _applicationModel      = applicationModel;
            _profileManager        = profileManager;
            _profileSwitchKeyTable = profileSwitchKeyTable;

            _applicationModel.ActivationKeyChange += OnActivationKeyChanged;
            _keyboardHooker.KeyHooked             += HandleHookedEventAsync;
            _options = _applicationModel.Options;

            _keyboardHooker.StartHook(_activationKey, null);
        }
예제 #2
0
 public ApplicationModel(ProfileSwitchKeyTableManager switchKeyTable, IAsyncJsonFileManager jsonSavefileManager)
 {
     _switchKeyTable      = switchKeyTable;
     _jsonSavefileManager = jsonSavefileManager;
 }