Exemple #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public Match()
 {
     matchIdField    = 0;
     matchRoundField = 0;
     homeTeamField   = new HomeTeam();
     awayTeamField   = new AwayTeam();
     matchDateField  = DateTime.MinValue;
     homeGoalsField  = 0;
     awayGoalsField  = 0;
 }
        private HomeTeam ParseHomeTeamNode(XmlNode homeTeamNode)
        {
            HomeTeam homeTeam = new HomeTeam();

            foreach (XmlNode xmlNode in homeTeamNode.ChildNodes)
            {
                switch (xmlNode.Name)
                {
                    case Tags.HomeTeamID:
                        homeTeam.homeTeamIdField = GenericFunctions.ConvertStringToUInt(xmlNode.InnerText);
                        break;
                    case Tags.HomeTeamName:
                        homeTeam.homeTeamNameField = xmlNode.InnerText;
                        break;
                }
            }

            return homeTeam;
        }