예제 #1
0
        public static CT_FFCheckBox Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FFCheckBox ctObj = new CT_FFCheckBox();

            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "checked")
                {
                    ctObj.checkedField = CT_OnOff.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "default")
                {
                    ctObj.defaultField = CT_OnOff.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "size")
                {
                    ctObj.itemField = CT_HpsMeasure.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "sizeAuto")
                {
                    ctObj.itemField = CT_OnOff.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
예제 #2
0
        public static CT_HpsMeasure Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_HpsMeasure ctObj = new CT_HpsMeasure();

            ctObj.val = XmlHelper.ReadULong(node.Attribute("w:val"));
            return(ctObj);
        }