public FormHocVien() { InitializeComponent(); xl = new CdmHocVien(); xl.Open(); if (xl.dmHocVien.Count > 0) { hienthi(); } }
public FormLopHoc() { InitializeComponent(); xllop = new CdmLopHoc(); xlhv = new CdmHocVien(); xlhv.Open(); if (xlhv.dmHocVien.Count > 0) { HienThiTatCaHV(); } xllop.Open(); if (xllop.dmLop.Count > 0) { hienthi(); } }
public bool xoaHV(string malop, string mahv) { try { CHocvien hv = timHV(malop, mahv); if (hv != null) { CdmHocVien xl = new CdmHocVien(); xl.xoa(mahv); return(true); } return(false); } catch (Exception) { throw; } }