public bool PlaceBet(int Amount, int Dog) { if (this.Cash >= Amount && MyBet == null) { this.Cash -= Amount; MyBet = new Bet() { Amount = Amount, Dog = Dog, Bettor = this }; UpdateLabels(); return true; } else { MessageBox.Show(this.Name + " doesn't have enough cash to place this bet, or you already made your bet."); return false; } }
public string Name; //guys name #endregion Fields #region Methods public void ClearBet() { MyBet = null; }