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; }
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; }