private void btnLogin_Click(object sender, EventArgs e) { string userName = txtUserName.Text; string passWord = txtPassword.Text; if (Login(userName, passWord)) { Account loginAccount = AccountDAO.Instance.GetAccountByUserName(userName); frmTableManage f = new frmTableManage(loginAccount); this.Hide(); f.ShowDialog(); this.Show(); } else { MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!"); } }
private void frAdmin_FormClosed(object sender, FormClosedEventArgs e) { frmTableManage f = new frmTableManage(); f.Update(); }