private void readModalLoadParticipation(XmlNode xml)
{
if (xml != null && xml.ChildNodes.Count > 0)
{
foreach (XmlNode child in xml.ChildNodes)
{
if ("Data".Equals(child.Name))
{
string caseName = ResultsPath.Format(Deserializer.readAttribute(child, "CaseName"));
// Create list if it doesn't exist
if (!results.ModalLPR.ContainsKey(caseName))
results.ModalLPR.Add(caseName, new List<ModalLPRRow>());
List<ModalLPRRow> row = results.ModalLPR[caseName];
// Now get the data
ModalLPRRow res = new ModalLPRRow(
Deserializer.readAttribute(child, "Item"),
Deserializer.readAttribute(child, "Type"),
float.Parse(Deserializer.readAttribute(child, "StaticVal")),
float.Parse(Deserializer.readAttribute(child, "DynamicVal")));
row.Add(res);
}
}
}
}