Exemple #1
0
 void CreateBetterlist(List <string> betters, ISubmittedBets sb, IResults actual)
 {
     foreach (var better in betters)
     {
         var score = new ScoringSystem(sb.GetSingleBet(better), actual);
         var bet   = new Better()
         {
             Name = better, Score = score.GetTotal()
         };
         var achievements = new AchievementSystem(sb.GetSingleBet(better), actual);
         bet.Achievements = achievements.Achievements;
         bet.RowClass     = "normal";
         Betters.Add(bet);
     }
 }
Exemple #2
0
 void CreateBetterlist(List <string> betters, ISubmittedBets sb, IResultCollection rc)
 {
     foreach (var better in betters)
     {
         var score    = new ScoringSystem(sb.GetSingleBet(better), rc.Current);
         var oldscore = new ScoringSystem(sb.GetSingleBet(better), rc.Previous);
         var bet      = new Better()
         {
             Name = better, Score = score.GetTotal(), OldScore = oldscore.GetTotal()
         };
         var achievements = new AchievementSystem(sb.GetSingleBet(better), rc.Current);
         bet.Achievements = achievements.Achievements;
         bet.RowClass     = "normal";
         Betters.Add(bet);
     }
 }