Пример #1
0
        private void frmThayDoiBangDiem_Load(object sender, EventArgs e)
        {
            LopDAO adaterLop = new LopDAO();
            HocKiDAO adapterHK = new HocKiDAO();
            MonHocDAO adapterMH = new MonHocDAO();

            if (flag == false)
            {
                combMonHoc.DataSource = adapterMH.getAllMH();
                combMonHoc.DisplayMember = "tenMonHoc";
                combMonHoc.Tag = adapterMH.getAllMH();

                combHK.DataSource = adapterHK.getAllHK();
                combHK.DisplayMember = "tenHocKi";
                combHK.Tag = adapterHK.getAllHK();

                combLop.DataSource = adaterLop.getAllClass();
                combLop.DisplayMember = "tenLop";
                combLop.Tag = adaterLop.getAllClass();
                flag = true;
            }
            XL_Chon();
        }
 private void frmBaoCaoTongKetHocKi_Load(object sender, EventArgs e)
 {
     HocKiDAO adapterHK = new HocKiDAO();
     if (flag == false)
     {
         combHocKi.DataSource = adapterHK.getAllHK();
         combHocKi.DisplayMember = "tenHocKi";
         combHocKi.Tag = adapterHK.getAllHK();
         flag = true;
     }
     capNhat();
 }