private void Btlogin_Click(object sender, EventArgs e) { if (login(Tbusername.Text, Tbpassword.Text)) { ftablemanager f2 = new ftablemanager(); this.Hide(); f2.ShowDialog(); this.Show(); Tbpassword.Text = ""; } else { MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!"); } }
private void Btlogin_Click(object sender, EventArgs e) { if (login(Tbusername.Text, Tbpassword.Text)) { AccountDTO loginacc = AccountDAO.Instance.getaccountbyusername(Tbusername.Text); ftablemanager f2 = new ftablemanager(loginacc); this.Hide(); f2.ShowDialog(); this.Show(); Tbpassword.Text = ""; } else { MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!"); } }