/// <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); }
private void SetParent(Command parent) { this.Parent = parent; }