Esempio n. 1
0
        private void KeyBindingComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(selKeyBinding))
            {
                Keys val = (Keys)KeyBindingComboBox.SelectedItem;
                if (val != selKeyBindingVal)
                {
                    selKeyBindingVal = val;
                    keyBindings.SetBinding(selKeyBinding, val);
                    UpdateKeyBindingsListViewItem(selKeyBinding, val);

                    Settings.Default.KeyBindings = keyBindings.GetSetting();
                    if (worldForm != null)
                    {
                        worldForm.SetKeyBindings(keyBindings);
                    }
                }
            }
        }