Esempio n. 1
0
 private static void WriteEPsNode(string homeOrAway, XmlWriter writer, NFLGame g, string teamCode)
 {
     writer.WriteStartElement(string.Format("{0}-ep", homeOrAway));
     foreach (TeamUnit u in Utility.UnitList)
     {
         var ep = g.ExperiencePoints(u.UnitCode, teamCode);
         writer.WriteAttributeString(u.UnitCode, ep.ToString());
     }
     writer.WriteEndElement();
 }