예제 #1
0
        public void ShowMin()
        {
            Player p = game.getPlayerByFormId(FormId);

            p.IncreaseBet(game.MinBetAmount);
            myBetTextBox.Text = "$" + game.MinBetAmount;
        }
예제 #2
0
        /// <summary>
        /// This method updates the current bet by a specified bet amount
        /// </summary>
        /// <param name="betValue"></param>
        private void Bet(decimal betValue)
        {
            Player p = game.getPlayerByFormId(FormId);

            try
            {
                // Update the bet amount
                p.IncreaseBet(betValue);


                // Update the "My Bet" and "My Account" values
                ShowBankValue();
            }
            catch (Exception NotEnoughMoneyException)
            {
                MessageBox.Show(NotEnoughMoneyException.Message);
            }
        }