Canguro.Model.Serializer.Deserializer.readLineAssigments C# (CSharp) Method

readLineAssigments() private method

private readLineAssigments ( XmlNode node ) : void
node XmlNode
return void
        private void readLineAssigments(XmlNode node)
        {
            int id = int.Parse(readAttribute(node, "Frame", "0"));
            if (id < model.LineList.Count)
            {
                LineElement e = model.LineList[id];
                string sName = readAttribute(node, "AnalSect", "");
                Section.FrameSection sec = model.Sections[sName] as Section.FrameSection;
                if (e != null && sec != null && e.Properties is StraightFrameProps)
                    ((StraightFrameProps)e.Properties).Section = sec;
                else if (e.Properties is StraightFrameProps)
                    model.Sections[((StraightFrameProps)e.Properties).Section.Name] = ((StraightFrameProps)e.Properties).Section;
            }
        }
Deserializer