Esempio n. 1
0
 public static CT_IconSet Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_IconSet ctObj = new CT_IconSet();
     if (node.Attributes["iconSet"] != null)
         ctObj.iconSet = (ST_IconSetType)Enum.Parse(typeof(ST_IconSetType), "Item"+node.Attributes["iconSet"].Value);
     ctObj.showValue = XmlHelper.ReadBool(node.Attributes["showValue"]);
     ctObj.percent = XmlHelper.ReadBool(node.Attributes["percent"]);
     ctObj.reverse = XmlHelper.ReadBool(node.Attributes["reverse"]);
     ctObj.cfvo = new List<CT_Cfvo>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "cfvo")
             ctObj.cfvo.Add(CT_Cfvo.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Esempio n. 2
0
 public CT_CfRule()
 {
     this.extLstField = new CT_ExtensionList();
     this.iconSetField = new CT_IconSet();
     this.dataBarField = new CT_DataBar();
     this.colorScaleField = new CT_ColorScale();
     this.formulaField = new List<string>();
     this.stopIfTrueField = false;
     this.aboveAverageField = true;
     this.percentField = false;
     this.bottomField = false;
     this.equalAverageField = false;
 }