예제 #1
0
 private void SelectWinnersByColor(string color)
 {
     foreach (var bet in BetsByColor.Where(bet => bet.Color == color))
     {
         bet.CalculateTotalEarn();
         WinnerBets.Add(bet);
     }
 }
예제 #2
0
 private void SelectWinnersByNumber(int number)
 {
     foreach (var bet in BetsByNumber.Where(bet => bet.Number == number))
     {
         bet.CalculateTotalEarn();
         WinnerBets.Add(bet);
     }
 }