Exemple #1
0
 public void AddBinding(CommandKeyBinding binding)
 {
     if (binding == null)
     {
         return;
     }
     binding.SetParentFolder(this);
     _CommandBindings.Add(binding);
 }
Exemple #2
0
        public CommandKeyBindingCollection Clone()
        {
            CommandKeyBindingCollection lNewCollection = new CommandKeyBindingCollection();

            for (int i = 0; i < this.Count; i++)
            {
                CommandKeyBinding lNewBinding = this[i].Clone();
                lNewCollection.Add(lNewBinding);
            }

            return(lNewCollection);
        }