Esempio n. 1
0
 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;
     }
 }
Esempio n. 2
0
        public string Name; //guys name

        #endregion Fields

        #region Methods

        public void ClearBet()
        {
            MyBet = null;
        }