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();
 }
Beispiel #2
0
 public void Collect(int Winner)
 {
     this.Cash += MyBet.PayOut(Winner);
     MyBet      = null;
     this.UpdateLabels();
 }
Beispiel #3
0
 public void ClearBet()
 {
     MyBet = null;
     this.UpdateLabels();
 }