Пример #1
0
 public DataEntryCompareAttributeCondition(JToken node) : base(node)
 {
     if (node["attribute"] != null)
     {
         this._Attribute = (DataEntryCompareAttribute)StringEnum.Parse(typeof(DataEntryCompareAttribute), node["attribute"].Value <string>());
     }
 }
Пример #2
0
 public DataEntryCompareAttributeCondition(XmlElement node) : base(node)
 {
     foreach (XmlElement propertyNode in node.ChildNodes)
     {
         switch (propertyNode.Name)
         {
         case "attribute":
             this._Attribute = (DataEntryCompareAttribute)StringEnum.Parse(typeof(DataEntryCompareAttribute), propertyNode.InnerText);
             continue;
         }
     }
 }