コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public Match()
 {
     matchIdField     = 0;
     homeTeamField    = new HomeTeam();
     awayTeamField    = new AwayTeam();
     matchDateField   = DateTime.MinValue;
     matchTypeField   = MatchType.Unavailable;
     homeGoalsField   = 0;
     awayGoalsField   = 0;
     ordersGivenField = false;
     statusField      = MatchStatus.Finished;
 }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public Match()
 {
     matchIdField = 0;
     homeTeamField = new HomeTeam();
     awayTeamField = new AwayTeam();
     matchDateField = DateTime.MinValue;
     matchTypeField = MatchType.Unavailable;
     homeGoalsField = 0;
     awayGoalsField = 0;
     ordersGivenField = false;
     statusField = MatchStatus.Finished;
 }
コード例 #3
0
        private AwayTeam ParseAwayTeamNode(XmlNode awayTeamNode)
        {
            AwayTeam awayTeam = new AwayTeam();

            foreach (XmlNode xmlNodeAwayTeam in awayTeamNode.ChildNodes) {
                switch (xmlNodeAwayTeam.Name) {
                    case Tags.AwayTeamID:
                        awayTeam.awayTeamIdField = GenericFunctions.ConvertStringToUInt(xmlNodeAwayTeam.InnerText);
                        break;
                    case Tags.AwayTeamName:
                        awayTeam.awayTeamNameField = xmlNodeAwayTeam.InnerText;
                        break;
                }
            }
            return awayTeam;
        }