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