private Team ParseTeamNode(XmlNode teamNode) { try { Team team = new Team(); foreach (XmlNode xmlNode in teamNode.ChildNodes) { switch (xmlNode.Name) { case Tags.TeamID: team.teamIdField = GenericFunctions.ConvertStringToUInt(xmlNode.InnerText); break; case Tags.TeamName: team.teamNameField = xmlNode.InnerText; break; case Tags.MatchList: if (xmlNode.ChildNodes != null) { team.matchListField = ParseMatchListNode(xmlNode); } break; } } return team; } catch (Exception ex) { throw ex; } }
/// <summary> /// Constructor /// </summary> public MatchesArchive() { isYouthField = false; teamField = new Team(); }