Beispiel #1
0
 public void Collect(int Winner)
 {
     //Ask my bet to pay out
     if (MyBet != null)
     {
         Cash += MyBet.PayOut(Winner);
     }
 }
Beispiel #2
0
        public void Collect(int Winner)
        {
            int collectedAmount = 0;

            collectedAmount = MyBet.PayOut(Winner);
            Cash           += collectedAmount;
            ClearBet();
            UpdateLabels();
        }
 /// <summary>
 /// Ask Bet object if his Greyhound is the winner, then adds or deducts money from Cash field.
 /// Clear references and updates labels
 /// </summary>
 /// <param name="Winner">No. of wining dog.</param>
 public void CollectMoney(int Winner)
 {
     Cash += MyBet.PayOut(Winner);
     ClearBet();
     UpdateLabel();
 }
Beispiel #4
0
 public void Collect(int winner)
 {
     Cash += MyBet.PayOut(winner);
     ClearBet();
     UpdateLabels();
 }