コード例 #1
0
ファイル: Accounts.cs プロジェクト: kevthedevv/1611_Pharmacy
 public Accounts()
 {
     Ada = new AccountDatabaseAccess();
     InitializeComponent();
     accounts = Ada.getAllAccounts();
     Fill();
 }
コード例 #2
0
ファイル: Add User.cs プロジェクト: singhbrar/Pharma
        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();
 }