Example #1
0
 public static CT_NumVal Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_NumVal ctObj = new CT_NumVal();
     if (node.Attributes["idx"] != null)
         ctObj.idx = XmlHelper.ReadUInt(node.Attributes["idx"]);
     ctObj.formatCode = XmlHelper.ReadString(node.Attributes["formatCode"]);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "v")
             ctObj.v = childNode.InnerText;
     }
     return ctObj;
 }
Example #2
0
 public CT_NumVal AddNewPt()
 {
     if(this.ptField==null)
         this.ptField = new List<CT_NumVal>();
     CT_NumVal val = new CT_NumVal();
     this.ptField.Add(val);
     return val;
 }