/// <summary> /// Creates the ListFormProperty /// </summary> /// <param name="document">Main document</param> /// <param name="PropValueType">Property value type</param> public ListFormProperty(IDocument document, PropertyValueType PropValueType) { Document = document; Node = document.CreateNode("list-property", "form"); PropertyValueType = PropValueType; _propertyValues = new ListFormPropertyElemCollection(); _propertyValues.Inserted += PropertyValuesCollection_Inserted; _propertyValues.Removed += PropertyValuesCollection_Removed; }
/// <summary> /// Creates the ListFormProperty /// </summary> /// <param name="document">Main document</param> /// <param name="propValueType">Property value type</param> public ListFormProperty(IDocument document, PropertyValueType propValueType) { Document = document; Node = new XElement(Ns.Form + "list-property"); PropertyValueType = propValueType; _propertyValues = new ListFormPropertyElemCollection(); _propertyValues.Inserted += PropertyValuesCollection_Inserted; _propertyValues.Removed += PropertyValuesCollection_Removed; }
public ListFormProperty(IDocument document, XmlNode node) { Document = document; Node = node; _propertyValues = new ListFormPropertyElemCollection(); foreach (XmlNode nodeChild in node.ChildNodes) { if (nodeChild.Name == "form:list-value") { _propertyValues.Add(new ListFormPropertyElement(document, nodeChild)); } } _propertyValues.Inserted += PropertyValuesCollection_Inserted; _propertyValues.Removed += PropertyValuesCollection_Removed; }
public ListFormProperty(IDocument document, XmlNode node) { Document = document; Node = node; _propertyValues = new ListFormPropertyElemCollection(); foreach (XmlNode nodeChild in node.ChildNodes) { if (nodeChild.Name == "form:list-value") { _propertyValues.Add(new ListFormPropertyElement(document, nodeChild)); } } _propertyValues.Inserted += PropertyValuesCollection_Inserted; _propertyValues.Removed += PropertyValuesCollection_Removed; }
/// <summary> /// Creates the ListFormProperty /// </summary> /// <param name="document">Main document</param> /// <param name="PropValueType">Property value type</param> public ListFormProperty(IDocument document, PropertyValueType PropValueType) { Document = document; Node = document.CreateNode("list-property", "form"); PropertyValueType = PropValueType; _propertyValues = new ListFormPropertyElemCollection(); _propertyValues.Inserted += PropertyValuesCollection_Inserted; _propertyValues.Removed += PropertyValuesCollection_Removed; }