Esempio n. 1
0
        private void button_Inventory_Click(object sender, EventArgs e)
        {
            AccountDatabaseAccess Ada = new AccountDatabaseAccess();
            Account user = new Account();

            user.FirstName    = firstNametxt.Text;
            user.LastName     = lastNametxt.Text;
            user.Username     = usernametxt.Text;
            user.Password     = passwordtxt.Text;
            user.UserType     = usertypetxt.Text;
            user.Address      = addresstxt.Text;
            user.EmailAddress = emailtxt.Text;
            user.Contact      = contacttxt.Text;
            Ada.addAccount(user);
        }