Exemplo n.º 1
0
        //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);
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 public PropertyValueGroup(PropertyValueGroupContainer parent)
 {
     this.parent = parent;
 }