public static TIRAPOPCKepDeviceTagInfo LoadFromXMLNode(XmlNode node)
 {
     if (node.Name == "Tag" || node.Name == "Row")
     {
         TIRAPOPCKepDeviceTagInfo rlt = new TIRAPOPCKepDeviceTagInfo();
         return(IRAPXMLUtils.LoadValueFromXMLNode(node, rlt) as TIRAPOPCKepDeviceTagInfo);
     }
     else
     {
         return(null);
     }
 }
Exemple #2
0
        public static TIRAPOPCLocDevice LoadFromXMLNode(XmlNode node)
        {
            if (node.Name == "Device" || node.Name == "Row")
            {
                TIRAPOPCLocDevice device = new TIRAPOPCLocDevice();
                device = IRAPXMLUtils.LoadValueFromXMLNode(node, device) as TIRAPOPCLocDevice;

                foreach (XmlNode child in node.ChildNodes)
                {
                    TIRAPOPCKepDeviceTagInfo tag = TIRAPOPCKepDeviceTagInfo.LoadFromXMLNode(child);
                    if (tag != null)
                    {
                        device.Tags.Add(tag);
                    }
                }

                return(device);
            }
            else
            {
                return(null);
            }
        }