public void Collect(int Winner) { Cash += MyBet.PayOut(Winner); ClearBet(); UpdateLabels(); }
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); } }
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(); }
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."); } }
//My collect method calls the payout method from the Bet Class public void Collect(int Winner) { this.Cash += MyBet.PayOut(Winner); }
/// <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. }