public Accounts() { Ada = new AccountDatabaseAccess(); InitializeComponent(); accounts = Ada.getAllAccounts(); Fill(); }
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); }
public Update_User() { InitializeComponent(); Ada = new AccountDatabaseAccess(); }
public Login() { InitializeComponent(); Ada = new AccountDatabaseAccess(); user = new Account(); }