Ejemplo n.º 1
0
        public static CT_FFTextInput Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FFTextInput ctObj = new CT_FFTextInput();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "type")
                {
                    ctObj.typeField = CT_FFTextType.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "default")
                {
                    ctObj.defaultField = CT_String.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "format")
                {
                    ctObj.formatField = CT_String.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "maxLength")
                {
                    ctObj.maxLengthField = CT_DecimalNumber.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Ejemplo n.º 2
0
        internal static CT_FFData Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FFData ctObj = new CT_FFData();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "name")
                {
                    ctObj.AddNewObject(CT_FFName.Parse(childNode, namespaceManager), FFDataItemsType.name);
                }
                //else if (childNode.LocalName == "tabIndex")
                //{

                //}
                else if (childNode.LocalName == "enabled")
                {
                    ctObj.AddNewObject(CT_OnOff.Parse(childNode, namespaceManager), FFDataItemsType.enabled);
                }
                else if (childNode.LocalName == "calcOnExit")
                {
                    ctObj.AddNewObject(CT_OnOff.Parse(childNode, namespaceManager), FFDataItemsType.calcOnExit);
                }
                else if (childNode.LocalName == "checkBox")
                {
                    ctObj.AddNewObject(CT_FFCheckBox.Parse(childNode, namespaceManager), FFDataItemsType.checkBox);
                }
                else if (childNode.LocalName == "ddList")
                {
                    ctObj.AddNewObject(CT_FFDDList.Parse(childNode, namespaceManager), FFDataItemsType.ddList);
                }
                else if (childNode.LocalName == "entryMacro")
                {
                    ctObj.AddNewObject(CT_MacroName.Parse(childNode, namespaceManager), FFDataItemsType.entryMacro);
                }
                else if (childNode.LocalName == "exitMacro")
                {
                    ctObj.AddNewObject(CT_MacroName.Parse(childNode, namespaceManager), FFDataItemsType.exitMacro);
                }
                else if (childNode.LocalName == "helpText")
                {
                    ctObj.AddNewObject(CT_FFHelpText.Parse(childNode, namespaceManager), FFDataItemsType.helpText);
                }
                else if (childNode.LocalName == "statusText")
                {
                    ctObj.AddNewObject(CT_FFStatusText.Parse(childNode, namespaceManager), FFDataItemsType.statusText);
                }
                else if (childNode.LocalName == "textInput")
                {
                    ctObj.AddNewObject(CT_FFTextInput.Parse(childNode, namespaceManager), FFDataItemsType.textInput);
                }
            }
            return(ctObj);
        }