public Guy(string name, int Cash, Label MyLabel, RadioButton guyButton) { Name = name; this.Cash = Cash; this.MyLabel = MyLabel; MyRadioButton = guyButton; MyBet = null; }
public bool PlaceBet(int BetAmount, string DogToWin, decimal Test) { this.MyBet = new Bet() { Amount = BetAmount, Dog = DogToWin, Bettor = this, odds = Test}; if (BetAmount <= Cash) { MyLabel2.Text = this.Name + " bets " + BetAmount + " dollars on " + DogToWin; this.UpdateLabels(); return true; } else { MessageBox.Show(Name + " does not have enough to cover that bet "); this.MyBet = null; return false; } }
public bool PlaceBet(int Amount, int Dog) { MyBet = new Bet(Amount, Dog, this); UpdateLabels(); return false; }
public void ClearBet() { MyBet = null; }
public bool PlaceBet(int Amount, int Dog) { MyBet = new Bet(Amount, Dog, this); UpdateLabels(); return(false); }
public void ClearBet() { MyBet = null; MyLabel2.Text = Name + " hasn't placed a bet"; }