private void btnDangNhapTK_Click(object sender, EventArgs e) { frmDangNhap frm = new frmDangNhap(); if (frm.ShowDialog() == DialogResult.OK) { if (ThamSo.Quyen == 1) { btnDangKiTK.Enabled = true; btnQuanLyMH.Enabled = true; btnQuanLyNCC.Enabled = true; btnQuanLyKH.Enabled = true; } else if (ThamSo.Quyen == 2) { btnQuanLyMH.Enabled = true; btnQuanLyNCC.Enabled = true; btnQuanLyKH.Enabled = true; } btnDangNhapTK.Enabled = false; btnDangXuat.Enabled = true; } }