private void btnTroVe_Click(object sender, EventArgs e) { this.Hide(); QuanLyLop qll = new QuanLyLop(); qll.Show(); }
private void btnDN_Click(object sender, EventArgs e) { string userName = txtTenDN.Text.Trim(); string pass = txtMK.Text.Trim(); if (kiemTraThongTin(userName, pass) == true) { if (ud.DangNhap(userName, pass) == true) { MessageBox.Show("Dang nhap thanh cong"); this.Hide(); QuanLyLop qll = new QuanLyLop(); qll.Show(); } else { MessageBox.Show("Dang nhap that bai"); } } }