Пример #1
0
        private void modifierComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            HotkeyModifier modifier = (HotkeyModifier)modifierComboBox.SelectedItem;

            if (hkc.validateNewModifier(modifier) == false)
            {
                MessageBox.Show(this, "Your current hotkeys contain one or more protected keys for \n" +
                                "the " + modifier.Description + " modifier: " + modifier.ProtectedKeysDescription + "\n" +
                                "Please disable or remove these hotkeys first."
                                , "Warning"
                                , MessageBoxButtons.OK
                                , MessageBoxIcon.Warning);
                modifierComboBox.SelectedIndex = currentModifierIndex;
                return;
            }

            updateModifier();
        }