/// <summary> /// Gets commands for the node. /// </summary> /// <returns></returns> public virtual CommandCollection GetCommands() { // do we have an entity? CommandCollection commands = new CommandCollection(); commands.AddRange(this.Commands); // entities... if (this.InnerObjectIsEntity) { commands.AddRange(Command.GetCommandsFromCommandBundles(this.InnerObjectEntityType)); } // common.. if (this._commonCommands != null) { commands.AddRange(this.CommonCommands.GetCommands()); } // return... return(commands); }