internal static CT_FFData Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_FFData ctObj = new CT_FFData(); foreach (XElement childNode in node.ChildElements()) { if (childNode.Name.LocalName == "name") { ctObj.AddNewObject(CT_FFName.Parse(childNode, namespaceManager), FFDataItemsType.name); } //else if (childNode.Name.LocalName == "tabIndex") //{ //} else if (childNode.Name.LocalName == "enabled") { ctObj.AddNewObject(CT_OnOff.Parse(childNode, namespaceManager), FFDataItemsType.name); } else if (childNode.Name.LocalName == "calcOnExit") { ctObj.AddNewObject(CT_OnOff.Parse(childNode, namespaceManager), FFDataItemsType.calcOnExit); } else if (childNode.Name.LocalName == "checkBox") { ctObj.AddNewObject(CT_FFCheckBox.Parse(childNode, namespaceManager), FFDataItemsType.checkBox); } else if (childNode.Name.LocalName == "ddList") { ctObj.AddNewObject(CT_FFDDList.Parse(childNode, namespaceManager), FFDataItemsType.ddList); } else if (childNode.Name.LocalName == "entryMacro") { ctObj.AddNewObject(CT_MacroName.Parse(childNode, namespaceManager), FFDataItemsType.entryMacro); } else if (childNode.Name.LocalName == "exitMacro") { ctObj.AddNewObject(CT_MacroName.Parse(childNode, namespaceManager), FFDataItemsType.exitMacro); } else if (childNode.Name.LocalName == "helpText") { ctObj.AddNewObject(CT_FFHelpText.Parse(childNode, namespaceManager), FFDataItemsType.helpText); } else if (childNode.Name.LocalName == "statusText") { ctObj.AddNewObject(CT_FFStatusText.Parse(childNode, namespaceManager), FFDataItemsType.statusText); } else if (childNode.Name.LocalName == "textInput") { ctObj.AddNewObject(CT_FFTextInput.Parse(childNode, namespaceManager), FFDataItemsType.textInput); } } return(ctObj); }
public static CT_FFStatusText Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_FFStatusText ctObj = new CT_FFStatusText(); if (node.Attribute("w:type") != null) { ctObj.typeFieldSpecified = true; ctObj.typeField = (ST_InfoTextType)Enum.Parse(typeof(ST_InfoTextType), node.Attribute("w:type").Value); } ctObj.valField = XmlHelper.ReadString(node.Attribute("w:val")); return(ctObj); }