コード例 #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();
 }
コード例 #2
0
 public bool PlaceBet(int BetAmount, int DogToWin)
 {
     if (BetAmount <= cash)
     {
         myBet = new Bet(BetAmount, DogToWin, this);
         UpdateLabels();
         return true;
     }
     else
     {
         return false;
     }
 }
コード例 #3
0
 public void ClearBet()
 {
     myBet = new Bet(this);
     UpdateLabels();
 }