Exemplo n.º 1
0
 public bool PlaceBet(int BetAmount, int DogToWin, string dogName)
 {
     if (Cash >= BetAmount)
     {
         MyBet        = new Bet(BetAmount, DogToWin, this);
         MyLabel.Text = MyBet.Description(dogName);
         return(true);
     }
     else
     {
         this.MyLabel.Text = this.Name + " got not enough bucks to bet!";
         return(false);
     }
 }
Exemplo n.º 2
0
 public void UpdateLabels()
 {
     MyLabel.Text       = MyBet.Description();
     MyRadioButton.Text = Name + " has $" + Cash;
 }