Ejemplo n.º 1
0
        private void BtnBack_Click(object sender, EventArgs e)
        {
            CustomerLandingPage customerPage = new CustomerLandingPage(customer);

            customerPage.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        private void BtnCreate_Click(object sender, EventArgs e)
        {
            Account newAccount = new Account();
            int     acct       = (90001 + newAccount.countAccounts());

            newAccount.AccountNumber = acct.ToString();
            newAccount.Type          = cbType.SelectedItem.ToString();
            newAccount.Balance       = Double.Parse(txtBalance.Text);
            newAccount.CustomerID    = customer.CustomerID;

            newAccount.insertAccount();

            CustomerLandingPage customerPage = new CustomerLandingPage(customer);

            customerPage.Show();
            this.Close();
        }