public FrmTableManager(DTO.Account acc) { InitializeComponent(); this.LoginAccount = acc; LoadTable(); loadCategory(); LoadComboBoxTable(cbSwitchTable); }
private void btnLogin_Click(object sender, EventArgs e) { string username = txtUserName.Text; string password = txtPassWord.Text; if (Login(username, password)) { DTO.Account loginAccount = DAO.AccountDAO.Instance.GetAccontByUserName(username); FrmTableManager f = new FrmTableManager(loginAccount); this.Hide(); f.ShowDialog(); this.Show(); } else { MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!"); } }
public AccountEvent(DTO.Account acc) { this.Acc = acc; }
void ChangeAccount(DTO.Account acc) { txtUserName.Text = loginAccount.UserName; txtDisplayName.Text = loginAccount.DisplayName; }
public FrmAccountFrofile(DTO.Account acc) { InitializeComponent(); LoginAccount = acc; }