Ejemplo n.º 1
0
 public Guy(string Name, int Cash, RadioButton MyRb, Label MyLabel)
 {
     name = Name;
     cash = Cash;
     myRadioButton = MyRb;
     myLabel = MyLabel;
     myBet = new Bet(this);
     this.UpdateLabels();
 }
Ejemplo n.º 2
0
 public bool PlaceBet(int BetAmount, int DogToWin)
 {
     if (BetAmount <= cash)
     {
         myBet = new Bet(BetAmount, DogToWin, this);
         UpdateLabels();
         return true;
     }
     else
     {
         return false;
     }
 }
Ejemplo n.º 3
0
 public void ClearBet()
 {
     myBet = new Bet(this);
     UpdateLabels();
 }