Exemplo n.º 1
0
        private void depositButton_Click(object sender, EventArgs e)
        {
            anAccount = new Account(Convert.ToDouble(amountTextBox.Text));

            amount = Convert.ToDouble(amountTextBox.Text);
            message = aCustomer.CustomerAccount.Deposit(amount);

            MessageBox.Show(message);
        }
Exemplo n.º 2
0
        private void saveCustomerInfoButton_Click(object sender, EventArgs e)
        {
            anAccount = new Account(accountNumberEntryTextBox.Text, accountOpeningDateEntryTextBox.Text);
            aCustomer = new Customer(customerNameEntryTextBox.Text, customerEmailEntryTextBox.Text);
            aCustomer.CustomerAccount = anAccount;

            MessageBox.Show("Customer account has been succesfully created." + "\n\nCustomer Name: " +
                            aCustomer.CustomerName + "\nEmail: " + aCustomer.CustomerEmail + "\nAccount Number: " + anAccount.AccountNumber +
                            "\nOpening Date: " + anAccount.AccountOpeningDate);
        }