예제 #1
0
        private void comboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            // Do nothing if we have suspended updates
            if (suspendHotkeyUpdate == true)
            {
                return;
            }

            ComboBox c = (ComboBox)sender;
            Session  s = (Session)c.SelectedItem;

            HotkeyController.HotKeyId hkid = (HotkeyController.HotKeyId)c.Tag;

            if (s == null ||
                Properties.Settings.Default.HotkeyFavouriteEnabled == false ||
                hkc.isSessionHotkeyEnabled(hkid) == false)
            {
                return;
            }

            hkc.saveSessionnameToHotkey(parentWindow, hkid, s);
        }