Esempio n. 1
0
        private void btnCreditUp_Click(object sender, EventArgs e)
        {
            decimal money  = atm.GetAccount().Money;
            decimal credit = 0;

            credit = ((long)money / 1000) * 100;
            decimal up = atm.CreditUpTo(credit);

            ShowMoney();
            MessageBox.Show($"根据您当前的存款评估,您的额度提升了{up}元");
        }