コード例 #1
0
        private void frmXemBangDiemCaNhan_Load(object sender, EventArgs e)
        {
            HocKiBUS adapterHK = new HocKiBUS();

            if (flag == false)
            {
                combHocKi.DataSource = adapterHK.getAllHK_BUS();
                combHocKi.DisplayMember = "tenHocKi";
                combHocKi.Tag = adapterHK.getAllHK_BUS();
                flag = true;
            }
            XL_Chon();
        }
コード例 #2
0
 private void frmBaoCaoTongKetMon_Load(object sender, EventArgs e)
 {
     HocKiBUS adapterHK = new HocKiBUS();
     MonHocBUS adapterMH = new MonHocBUS();
     if (flag == false)
     {
         combMonHoc.DataSource = adapterMH.getAllMH_BUS();
         combMonHoc.DisplayMember = "tenMonHoc";
         combMonHoc.Tag = adapterMH.getAllMH_BUS();
         combHocKi.DataSource = adapterHK.getAllHK_BUS();
         combHocKi.DisplayMember = "tenHocKi";
         combHocKi.Tag = adapterHK.getAllHK_BUS();
         flag = true;
     }
     capNhat();
 }
コード例 #3
0
        private void frmThayDoiBangDiem_Load(object sender, EventArgs e)
        {
            LopBUS adaterLop = new LopBUS();
            HocKiBUS adapterHK = new HocKiBUS();
            MonHocBUS adapterMH = new MonHocBUS();

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

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

                combLop.DataSource = adaterLop.getAllClass_BUS();
                combLop.DisplayMember = "tenLop";
                combLop.Tag = adaterLop.getAllClass_BUS();
                flag = true;
            }
            XL_Chon();
        }