Beispiel #1
0
		public static MatchSummary GetTotal(IList<MatchSummary> list)
		{
			MatchSummary total = new MatchSummary();
			total._Name = "Total";
			foreach (MatchSummary item in list)
			{
				total._Matches.Won += item._Matches.Won;
				total._Matches.Lost += item._Matches.Lost;
				total._Sets.Won += item._Sets.Won;
				total._Sets.Lost += item._Sets.Lost;
				total._Games.Won += item._Games.Won;
				total._Games.Lost += item._Games.Lost;
			}
			return total;
		}
Beispiel #2
0
		public static MatchSummary Get(SafeDataReader dr)
		{
			MatchSummary item = new MatchSummary();
			item.Fetch(dr);
			return item;
		}