コード例 #1
0
        // Event for CardChoice
        private void CardChoice_OnClickPay(object sender, EventArgs e)
        {
            CardChoice card = (CardChoice)_CardHandler.CurrentCard;

            card.Action = CardChoice.ActionOption.PAY;
            try
            {
                _CardHandler.ExecuteCardAction(card);
                this.Content = null;
            }
            catch (BankBalanceIsNotEnougth exp)
            {
                this.Content = null;
                EventException(exp.Amount, card);
            }
        }