Пример #1
0
 private void initializeBettors()
 {
     bettors = new Bettor[numBettors];
     bettors[0] = new Bettor("Joe", Cash, joeRadioButton, joeBetLabel);
     bettors[1] = new Bettor("Bob", Cash, bobRadioButton, bobBetLabel);
     bettors[2] = new Bettor("Al", Cash, alRadioButton, alBetLabel);
     joeRadioButton.Checked = true;
 }
Пример #2
0
        private int Dog; // The number of the dog the bet is on

        #endregion Fields

        #region Constructors

        public Bet(int amount, int dog, Bettor bettor)
        {
            this.Amount = amount;
            this.Dog = dog;
            this.bettor = bettor;
        }