예제 #1
0
 public Accounts()
 {
     Ada = new AccountDatabaseAccess();
     InitializeComponent();
     accounts = Ada.getAllAccounts();
     Fill();
 }
예제 #2
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);
        }
예제 #3
0
 public Update_User()
 {
     InitializeComponent();
     Ada = new AccountDatabaseAccess();
 }
예제 #4
0
 public Login()
 {
     InitializeComponent();
     Ada  = new AccountDatabaseAccess();
     user = new Account();
 }