private void LoadDSLoaiMon(string timKiem = "", bool trangThai = true) { if (chkLoaiMAConSuDung.Checked == false) { List <LoaiMonDTO> lstLoaiMon = LoaiMonBUS.LayDanhSachLoaiMon(timKiem, trangThai); dgvDSLoaiMon.DataSource = lstLoaiMon; XoaForm(true); } else { dgvDSLoaiMon.DataSource = LoaiMonBUS.LayDSLoaiMonAnBiXoa(); dgvDSLoaiMon.CurrentCell = null; txtMaLoaiMon.Clear(); txtTenLoaiMon.Clear(); btnCapNhat.Hide(); btnThem.Hide(); btnXoa.Hide(); btnLamMoi.Hide(); btnKhoiPhuc.Show(); if (dgvDSLoaiMon.Rows.Count > 0) { btnKhoiPhuc.Enabled = true; } else { btnKhoiPhuc.Enabled = false; } chkTrangThai.Checked = false; } }