public void ShowMin() { Player p = game.getPlayerByFormId(FormId); p.IncreaseBet(game.MinBetAmount); myBetTextBox.Text = "$" + game.MinBetAmount; }
/// <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); } }