private void writeBaseReactions(XmlWriter xml)
{
if (results.BaseReactions == null || results.BaseReactions.Length == 0)
return;
xml.WriteStartElement("Base_Reactions");
foreach (ResultsCase rCase in results.ResultsCases)
{
results.ActiveCase = rCase;
for (int i = 0; i < results.BaseReactions.Length; i++)
{
xml.WriteStartElement("Data");
xml.WriteAttributeString("Case", results.ActiveCase.Id.ToString());
xml.WriteAttributeString("I", i.ToString());
xml.WriteAttributeString("Data", results.BaseReactions[i].ToString());
xml.WriteEndElement();
}
}
xml.WriteEndElement();
}