//public override PropertyValueContainerBase CreateValueContainer() //{ // return this.CreateValueContainer(); //} public override PropertyValueContainerBase CreateValueContainer() { PropertyValueGroupContainer container = new PropertyValueGroupContainer(this); //PropertyValueGroup valueGroup = new PropertyValueGroup(container); foreach (PropertyTemplateBase child in this.Children) { container.Children.Add(child.CreateValueContainer()); } //container.Values.Add(valueGroup); return(container); }
public virtual bool Add(PropertyValueGroupContainer group) { if (this.children == null) { this.children = new List <PropertyValueContainerBase>(); } if (base.Template.Multiplicity > 0 && this.children.Count >= base.Template.Multiplicity) { return(false); } this.children.Add(group); return(true); }
public PropertyValueGroup(PropertyValueGroupContainer parent) { this.parent = parent; }