protected void AddDefaultAttributeValues(Domain.AttributeValue parent) { Domain.AttributeValue addNewAttribute = new Kernel.Domain.AttributeValue(); addNewAttribute.IsAddNewItem = true; addNewAttribute.name = "Add new value..."; addNewAttribute.parent = this.Root; this.Root.childrenListChangeHandler.Items.Add(addNewAttribute); if (parent.isCompleted && parent.HasMoreElements()) { Domain.AttributeValue showModeAttributes = new Domain.AttributeValue(); showModeAttributes.IsShowMoreItem = true; showModeAttributes.name = "Show more value..."; showModeAttributes.parent = parent; parent.childrenListChangeHandler.Items.Add(showModeAttributes); } if (parent != this.Root && this.Root.isCompleted && this.Root.HasMoreElements()) { Domain.AttributeValue showModeAttributes = new Domain.AttributeValue(); showModeAttributes.IsShowMoreItem = true; showModeAttributes.name = "Show more values..."; showModeAttributes.parent = this.Root; this.Root.childrenListChangeHandler.Items.Add(showModeAttributes); } }