示例#1
0
 public Player(string Name, Bet MyBet, int Money, RadioButton MyRadioButton, Label MyLabel)
 {
     this.Name = Name;
     this.MyBet = MyBet;
     this.Money = Money;
     this.MyRadioButton = MyRadioButton;
     this.MyLabel = MyLabel;
 }
示例#2
0
 public bool PlaceBet(int Amount, int Dog)
 {
     // ustaw nowy zakład i przechowaj go w polu MyBet
     // zwróc true, jeżeli facet ma wystarczajaco hajsu zeby postawic
     if (Amount <= Money)
     {
         MyBet = new Bet(Amount, Dog, this);
         return true;
     }
     return false;
 }