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); }
public ApplicationModel(ProfileSwitchKeyTableManager switchKeyTable, IAsyncJsonFileManager jsonSavefileManager) { _switchKeyTable = switchKeyTable; _jsonSavefileManager = jsonSavefileManager; }