Example #1
0
        public bool PlaceBet(int BetAmount, int DogToWin)
        {
            if (Cash > BetAmount)
            {
                MyBet = new Bet() { Amount = BetAmount, Dog = DogToWin, Bettor = this };
                MyLabel.Text = MyBet.GetDescription();
                return true;
            }
            else
            {
                return false;
            }

            // Place a new bet and store it in my bet field
            // Return true if the guy had enough money to start
        }
Example #2
0
        public string Name; // name obv

        #endregion Fields

        #region Methods

        public void ClearBet()
        {
            MyBet = null;
        }