Canguro.Model.Serializer.Deserializer.readUBC97_ASD C# (CSharp) Метод

readUBC97_ASD() приватный Метод

private readUBC97_ASD ( XmlNode node ) : void
node XmlNode
Результат void
        private void readUBC97_ASD(XmlNode node)
        {
            UBC97_ASD obj = null;

            foreach (DesignOptions opt in model.DesignOptions)
                if (opt is UBC97_ASD)
                    obj = (UBC97_ASD)opt;
            if (obj != null)
            {
                string zone = obj.GetSeismicZoneName(obj.SeisZone);

                // obj.THDesign = GetTHDesign(readAttribute(node, "Name", obj.GetTHDesignName(obj.THDesign)));
                obj.PatLLF = float.Parse(readAttribute(node, "PatLLF", obj.PatLLF.ToString()));
                obj.SRatioLimit = float.Parse(readAttribute(node, "SRatioLimit", obj.SRatioLimit.ToString()));
                obj.MaxIter = uint.Parse(readAttribute(node, "MaxIter", obj.MaxIter.ToString()));
                obj.SeisZone = GetSeismicZone(readAttribute(node, "SeisZone", zone));
                obj.LatFactor = float.Parse(readAttribute(node, "LatFactor", obj.LatFactor.ToString()));
                obj.CheckDefl = readAttribute(node, "CheckDefl", obj.CheckDefl.ToString()).Equals("Yes");
                obj.DLRat = float.Parse(readAttribute(node, "DLRat", obj.DLRat.ToString()));
                obj.SDLAndLLRat = float.Parse(readAttribute(node, "SDLAndLLRat", obj.SDLAndLLRat.ToString()));
                obj.LLRat = float.Parse(readAttribute(node, "LLRat", obj.LLRat.ToString()));
                obj.TotalRat = float.Parse(readAttribute(node, "TotalRat", obj.TotalRat.ToString()));
                obj.NetRat = float.Parse(readAttribute(node, "NetRat", obj.NetRat.ToString()));
                model.SteelDesignOptions = obj;
            }
        }
Deserializer