Example #1
0
        void GetSubcategoryStats(List <Play> subcatPlays, SubCategoryStat subcatStat, string desc,
                                 int totalCount, out int localTeamCount, out int visitorTeamCount)
        {
            int count;

            count = subcatPlays.Count();
            CountPlaysInTeam(subcatPlays, out localTeamCount, out visitorTeamCount);
            PercentualStat pStat = new PercentualStat(desc, count, localTeamCount,
                                                      visitorTeamCount, totalCount);

            subcatStat.AddOptionStat(pStat);
        }
 public void AddOptionStat(PercentualStat stat)
 {
     optionStats.Add(stat);
 }
Example #3
0
 public void AddOptionStat(PercentualStat stat)
 {
     optionStats.Add(stat);
 }
Example #4
0
        void GetSubcategoryStats(List<Play> subcatPlays, SubCategoryStat subcatStat, string desc,
			int totalCount, out int localTeamCount, out int visitorTeamCount)
        {
            int count;

            count = subcatPlays.Count();
            CountPlaysInTeam(subcatPlays, out localTeamCount, out visitorTeamCount);
            PercentualStat pStat = new PercentualStat(desc, count, localTeamCount,
                visitorTeamCount, totalCount);
            subcatStat.AddOptionStat(pStat);
        }