示例#1
0
 private void createButton_Click(object sender, EventArgs e)
 {
     anAccount=new Account(nameTextBox.Text,accNoTextBox.Text);
     anAccount.name = nameTextBox.Text;
     MessageBox.Show("Name: " +anAccount.name + "Account Number: " + anAccount.account);
     nameTextBox.Text = "";
     accNoTextBox.Text = "";
 }
示例#2
0
        private void createButton_Click(object sender, EventArgs e)
        {
            anAccount = new Account(customerNameTextBox.Text,accountNumberTextBox.Text);
            anAccount = new Account(accountNumberTextBox.Text);
            anAccount = new Account();

          //  anAccount.Name = customerNameTextBox.Text;
         //   anAccount.Number = accountNumberTextBox.Text;
        }