Пример #1
0
 public BonusRoundScorecardTeam(string teamName, BonusRoundAnswer roundAnswer, int maxWager)
 {
     BonusRoundNumber = roundAnswer.BonusRoundNumber;
     TeamName         = teamName;
     RoundAnswer      = roundAnswer.Answer;
     Wager            = roundAnswer.Wager;
     MaxWager         = maxWager;
     WagerValid       = roundAnswer.Wager <= MaxWager;
 }
Пример #2
0
 public void SetBonusRoundAnswer(BonusRoundAnswer ans)
 {
     if (ans.BonusRoundNumber == BonusRoundAnswers.Count)
     {
         BonusRoundAnswers.Add(ans);
     }
     else if (ans.BonusRoundNumber < BonusRoundAnswers.Count)
     {
         BonusRoundAnswers[ans.BonusRoundNumber] = ans;
     }
     else
     {
         throw new ArgumentOutOfRangeException("BonusRoundAnswers", "Round number higher than expected");
     }
     ScoreNeedsUpdated = true;
 }