Esempio n. 1
0
        public static List <ISOLinkGroup> ReadXML(XmlNodeList nodes)
        {
            List <ISOLinkGroup> items = new List <ISOLinkGroup>();

            foreach (XmlNode node in nodes)
            {
                items.Add(ISOLinkGroup.ReadXML(node));
            }
            return(items);
        }
Esempio n. 2
0
        public static ISO11783_LinkList ReadXML(XmlNode linkListNode, string baseFolder)
        {
            ISO11783_LinkList linkList = new ISO11783_LinkList();

            linkList.VersionMajor = linkListNode.GetXmlNodeValueAsInt("@VersionMajor");
            linkList.VersionMinor = linkListNode.GetXmlNodeValueAsInt("@VersionMinor");
            linkList.ManagementSoftwareManufacturer = linkListNode.GetXmlNodeValue("@ManagementSoftwareManufacturer") ?? string.Empty;
            linkList.ManagementSoftwareVersion      = linkListNode.GetXmlNodeValue("@ManagementSoftwareVersion") ?? string.Empty;
            linkList.TaskControllerManufacturer     = linkListNode.GetXmlNodeValue("@TaskControllerManufacturer") ?? string.Empty;
            linkList.TaskControllerVersion          = linkListNode.GetXmlNodeValue("@TaskControllerVersion") ?? string.Empty;
            linkList.DataTransferOriginInt          = linkListNode.GetXmlNodeValueAsInt("@DataTransferOrigin");
            linkList.FileVersion = linkListNode.GetXmlNodeValue("@FileVersion") ?? string.Empty;

            XmlNodeList lgpNodes = linkListNode.SelectNodes("LGP");

            if (lgpNodes != null)
            {
                linkList.LinkGroups.AddRange(ISOLinkGroup.ReadXML(lgpNodes));
            }

            return(linkList);
        }
Esempio n. 3
0
        public static ISOLinkGroup ReadXML(XmlNode node)
        {
            if (node == null)
            {
                return(null);
            }

            ISOLinkGroup item = new ISOLinkGroup();

            item.LinkGroupId         = node.GetXmlNodeValue("@A");
            item.LinkGroupTypeInt    = node.GetXmlNodeValueAsInt("@B");
            item.ManufacturerGLN     = node.GetXmlNodeValue("@C");
            item.LinkGroupNamespace  = node.GetXmlNodeValue("@D");
            item.LinkGroupDesignator = node.GetXmlNodeValue("@E");

            XmlNodeList lnkNodes = node.SelectNodes("LNK");

            if (lnkNodes != null)
            {
                item.Links.AddRange(ISOLink.ReadXML(lnkNodes));
            }

            return(item);
        }