private void LoadGeneralTab() { if (tabControl.SelectedTab != tabGeneral) { return; } SetupButtonEnabled(false); RegistryKeyUtils.PopulateComboBoxesBasedOnCurrentRegistryKey(_loadedSettings.MonitoredRegistryKey, CreateRegistryKeyObjectStruct()); GlobalHotkeyUtils.PopulateGlobalHotkeyCombos(_loadedSettings.General.LoadedGlobalHotkey, CreateGlobalHotkeyObjectStruct()); checkGeneralShowBalloonTips.Checked = _loadedSettings.General.ShowBalloonTips; GeneralUtils.PopulateIconProperties(_loadedSettings.General, comboGeneralIconFont, comboGeneralIconColor, comboGeneralIconTextColor); upDownGeneralIconSize.Text = _loadedSettings.General.IconFontSize.ToString(CultureInfo.InvariantCulture); // Check to see if Registry Monitor Starts With Windows checkGeneralStartWithWindows.Checked = rkStartup.GetValue(REGISTRY_MONITOR) != null; }
private void LoadGlobalHotkey() { _hkManager.KeyPressed += HkManagerOnKeyPressed; GlobalHotkeyUtils.RegisterGlobalHotkey(_hkManager, _loadedSettings.General.LoadedGlobalHotkey); _currentLoadedGlobalHotkey = _loadedSettings.General.LoadedGlobalHotkey; }
private void SetNewGlobalHotkeyIfChanged() { GlobalHotkeyUtils.SetNewGlobalHotkeyIfChanged(_loadedSettings, _currentLoadedGlobalHotkey, _hkManager); }