Beispiel #1
0
        public override void LoadXml(XmlDocument xDoc, XmlNode rootNode, Boolean refLoad = false)
        {
            if (rootNode == null)
            {
                return;
            }
            XmlControlHandler.GetDefaultXmlItemAttributes(rootNode, xDoc, this);

            for (int i = 0; i < rootNode.ChildNodes.Count; i++)
            {
                XmlNode xValues = rootNode.ChildNodes[i];
                foreach (XmlNode xValue in xValues.ChildNodes)
                {
                    string type        = XmlGetter.Attribute(xValue, "Type");
                    bool   isVariable  = XmlGetter.Attribute(xValue, "IsVariable").Equals("true");
                    bool   isComponent = XmlGetter.Attribute(xValue, "IsComponent").Equals("true");

                    string            value     = xValue.InnerText;
                    XmlConditionValue condValue = new XmlConditionValue(type, value, isVariable, isComponent);
                    _values.Add(condValue);
                }
            }
        }
Beispiel #2
0
 public void Add(XmlConditionValue cond)
 {
     _values.Add(cond);
 }