public KeyBindingCollection GetSavedKeyBindings() { KeyBindingCollection collection = new KeyBindingCollection(); foreach (KeyBinding binding in m_keyBindingList) { if (binding.Save) { collection.Add(binding); } } return(collection); }
public void SetKeyBindings(KeyBindingCollection bindings) { m_keyBindingList.Clear(); m_keyBindingMap.Clear(); if (bindings == null) { return; } foreach (KeyBinding binding in bindings) { AddBinding(binding); } }