Example #1
0
        private void FormHotkeys_Load(object sender, System.EventArgs e)
        {
            try
            {
                var selectCategoryHotkey = _views.GetHotkeyByCode(PaneDocuments.HotkeyCode_SelectCategory);
                txtSelectCategory.Hotkey          = selectCategoryHotkey.Hotkey;
                txtSelectCategory.HotkeyModifiers = selectCategoryHotkey.Modifiers;

                var editValueHotkey = _views.GetHotkeyByCode(PaneDocuments.HotkeyCode_EditValue);
                txtEditValue.Hotkey          = editValueHotkey.Hotkey;
                txtEditValue.HotkeyModifiers = selectCategoryHotkey.Modifiers;
            }
            catch (Exception ex)
            {
                MainForm.ShowExceptionMessage(ex);
            }
        }