Exemple #1
0
 public FormHocVien()
 {
     InitializeComponent();
     xl = new CdmHocVien();
     xl.Open();
     if (xl.dmHocVien.Count > 0)
     {
         hienthi();
     }
 }
Exemple #2
0
 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();
     }
 }
Exemple #3
0
 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;
     }
 }