Esempio n. 1
0
        public void Collect(int Winner)
        {
            Cash += MyBet.PayOut(Winner);

            ClearBet();
            UpdateLabels();
        }
Esempio n. 2
0
 public void Collect(Greyhound Winner)
 {
     //did you place a bet? if so check to see if you won or lost
     if (MyBet != null)
     {
         Cash += MyBet.PayOut(Winner);
     }
 }
Esempio n. 3
0
 public void Collect(int Winner)
 {
     // Ask my bet to pay out, clear my bet, and update my labels
     if (MyBet != null)
     {
         Cash += MyBet.PayOut(Winner);
         MyBet = null;
     }
     UpdateLabel();
 }
Esempio n. 4
0
 public void Collect(int Winner)
 {
     /* 1. Call Bet object to PayOut.
      * 2. Be gangsta rich.
      */
     if (MyBet != null)
     {
         Cash += MyBet.PayOut(Winner);
         UpdateLabels();
     }
     else
     {
         MessageBox.Show("MyBet is null.");
     }
 }
Esempio n. 5
0
 //My collect method calls the payout method from the Bet Class
 public void Collect(int Winner)
 {
     this.Cash += MyBet.PayOut(Winner);
 }
Esempio n. 6
0
 /// <summary>
 /// Method to collect the payout of a bet placed.
 /// </summary>
 /// <param name="Winner"> The dog that won the race. </param>
 public void Collect(int Winner)
 {
     Cash += MyBet.PayOut(Winner);
     ClearBet();     // After a payout, make sure to clear the bet...
     UpdateLabels(); // and update the labels.
 }