Example #1
0
 /// <summary>
 /// Adds a command to the command tree.
 /// </summary>
 /// <param name="command"></param>
 /// <returns></returns>
 public Command RegisterSubCommand(Command command)
 {
     command.SetParent(this);
     this._subCommands.Add(command);
     return(this);
 }
Example #2
0
 private void SetParent(Command parent)
 {
     this.Parent = parent;
 }