///	<interface>ICommandManager</interface>
 /// <summary>
 /// Deactivates the specified command list.
 /// </summary>
 /// <param name="commandList">The CommandList to deactivate.</param>
 public void DeactivateCommandList(CommandList commandList)
 {
     //	Remove all the commands from this command provider from the command table.
     foreach (Command command in commandList.Commands)
         commandTable.Remove(command.Identifier);
 }
Пример #2
0
 /// <summary>
 /// Removes the specified command list.
 /// </summary>
 /// <param name="commandProvider">The CommandList to remove.</param>
 public void RemoveCommandList(CommandList commandList)
 {
     //	Remove all the commands from the command table.
     foreach (Command command in commandList.Commands)
         RemoveCommand(command);
 }
 ///	<interface>ICommandManager</interface>
 /// <summary>
 /// Activates the specified command list.
 /// </summary>
 /// <param name="commandList">The CommandList to activate.</param>
 public void ActivateCommandList(CommandList commandList)
 {
     //	Add all the commands from this command provider to the command table.
     foreach (Command command in commandList.Commands)
         commandTable.Add(command.Identifier, command);
 }
Пример #4
0
 /// <summary>
 /// Adds the specified command list.
 /// </summary>
 /// <param name="commandList">The CommandList to add.</param>
 public void AddCommandList(CommandList commandList)
 {
     //	Add all the commands to the command table.
     foreach (Command command in commandList.Commands)
         AddCommand(command);
 }