예제 #1
0
        public KeyBindingCollection GetSavedKeyBindings()
        {
            KeyBindingCollection collection = new KeyBindingCollection();

            foreach (KeyBinding binding in m_keyBindingList)
            {
                if (binding.Save)
                {
                    collection.Add(binding);
                }
            }
            return(collection);
        }
예제 #2
0
        public void SetKeyBindings(KeyBindingCollection bindings)
        {
            m_keyBindingList.Clear();
            m_keyBindingMap.Clear();

            if (bindings == null)
            {
                return;
            }

            foreach (KeyBinding binding in bindings)
            {
                AddBinding(binding);
            }
        }