public void AddCommand(ICommandAdaptor cmd) { AssertUtility.ArgumentNotNull(cmd, "cmd"); this.Commands.Commands.Add(cmd); }
public void AddCommand(string cmd, ICommandAdaptor cmdAdaptor) { this.Commands.NamedCommands.Add(cmd, cmdAdaptor); }
public void RemoveCommand(ICommandAdaptor cmd) { AssertUtility.ArgumentNotNull(cmd, "cmd"); this.Commands.Commands.Remove(cmd); }