예제 #1
0
 public Person(string name, int Cash, Label MyLabel, RadioButton guyButton)
 {
     Name          = name;
     this.Cash     = Cash;
     this.MyLabel  = MyLabel;
     MyRadioButton = guyButton;
     MyBet         = null;
 }
예제 #2
0
 public bool SetBet(int Amount, int horse)
 {
     MyBet = new Gamble(Amount, horse, this);
     UpdateLabels();
     if (MyBet.Amount == 0)
     {
         MyRadioButton.Enabled = false;
     }
     return(false);
 }
예제 #3
0
 public void UnSetBet()
 {
     MyBet = null;
 }