예제 #1
0
 public void AddCommand(ICommandAdaptor cmd)
 {
     AssertUtility.ArgumentNotNull(cmd, "cmd");
     this.Commands.Commands.Add(cmd);
 }
예제 #2
0
 public void AddCommand(string cmd, ICommandAdaptor cmdAdaptor)
 {
     this.Commands.NamedCommands.Add(cmd, cmdAdaptor);
 }
예제 #3
0
 public void RemoveCommand(ICommandAdaptor cmd)
 {
     AssertUtility.ArgumentNotNull(cmd, "cmd");
     this.Commands.Commands.Remove(cmd);
 }