Canguro.Model.Serializer.ResultsDeserializer.Deserialize C# (CSharp) Method

Deserialize() public method

public Deserialize ( XmlNode xml ) : void
xml System.Xml.XmlNode
return void
        public void Deserialize(XmlNode xml)
        {
            try
            {
                if ("T-Results".Equals(xml.Name))
                {
                    int id = int.Parse(Deserializer.readAttribute(xml, "ID"));
                    results = new Canguro.Model.Results.Results(id);
                    results.Finished = bool.Parse(Deserializer.readAttribute(xml, "Finished", true.ToString()));
                    model.Results = results;
                }
                if (results != null && results.AnalysisID > 0)
                {
                    readResultCases(xml.SelectSingleNode("T-Result_Cases"));
                    results.Init();
                    readJointDisplacements(xml.SelectSingleNode("Joint_Displacements"));
                    readJointReactions(xml.SelectSingleNode("Joint_Reactions"));
                    readJointVelocities(xml.SelectSingleNode("Joint_Velocities_-_Relative"));
                    readJointAccelerations(xml.SelectSingleNode("Joint_Accelerations_-_Relative"));
                    readJointMasses(xml.SelectSingleNode("Assembled_Joint_Masses"));
                    readElementJointForces(xml.SelectSingleNode("Element_Joint_Forces_-_Frames"));
                    readBaseReactions(xml.SelectSingleNode("Base_Reactions"));
                    readModalPeriods(xml.SelectSingleNode("Modal_Periods_And_Frequencies"));
                    readModalLoadParticipation(xml.SelectSingleNode("Modal_Load_Participation_Ratios"));
                    readModalParticipationMass(xml.SelectSingleNode("Modal_Participating_Mass_Ratios"));
                    readModalParticipationFactors(xml.SelectSingleNode("Modal_Participation_Factors"));
                    readResponseSpectrumModalInfo(xml.SelectSingleNode("Response_Spectrum_Modal_Information"));
                    readDesignSteelSummary(xml.SelectSingleNode("T-Design_Steel_Summary"));
                    readDesignSteelPMM(xml.SelectSingleNode("T-Design_Steel_PMM"));
                    readDesignSteelShear(xml.SelectSingleNode("T-Design_Steel_Shear"));
                    readDesignConcreteColumn(xml.SelectSingleNode("T-Design_Concrete_Column"));
                    readDesignConcreteBeam(xml.SelectSingleNode("T-Design_Concrete_Beam"));
                    if (results.ResultsCases.Count > 0)
                        results.ActiveCase = results.ResultsCases[0];
                }
            }
            catch (Exception ex)
            {
                model.IsLocked = false;
                System.Windows.Forms.MessageBox.Show("Cannot load results");
            }
        }