public void PlaceBet(int BetAmount, int DogToWin) { if(Cash >= BetAmount) { MyBet = new Bet(BetAmount, DogToWin, this); if(MyLabel.Text.Equals(Name + " has not placed a bet yet")) Cash -= MyBet.getAmount(); } else { MyLabel.Text = Name + "does not have enough cash to place bet"; } UpdateLabels(); }
public void Collect(int Winner) { this.Cash += MyBet.PayOut(Winner); MyBet = null; this.UpdateLabels(); }
public void ClearBet() { MyBet = null; this.UpdateLabels(); }