Esempio n. 1
0
        private void depositButton_Click(object sender, EventArgs e)
        {
            if (_customer == null)
            {
                MessageBox.Show("There's no customer or account!");
                return;
            }
            double amount = Convert.ToDouble(amountTextBox.Text);

            if (_customer.AccountDeposit(amount))
            {
                MessageBox.Show(amount + " Tk. Sueccesfully Deposited!");
            }
        }