/// <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); }
/// <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); }
/// <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); }