private void frmQLNguoiDung_Load(object sender, EventArgs e)
 {
     CboUtil.SetDataSource(comboBoxEditNguoiDung, _giaoVienBUS.LayDT_DanhSachGiaoVien(),
                           "MaGiaoVien", "TenGiaoVien", 0);
     CboUtil.SetDataSource(comboBoxEditQuyenSuDung, _loaiNguoiDungBUS.LayDT_LoaiNguoiDung(),
                           "MaLoaiND", "TenLoaiND", 0);
     // load gridview
     _Load_Lai_Gridview();
 }
 private void frmLapDSLop_Load(object sender, EventArgs e)
 {
     CboUtil.SetDataSource(comboBoxEditNamHoc,
                           _namHocBUS.LayDTNamHoc(),
                           "MaNamHoc", "TenNamHoc", 0);
     CboUtil.SetDataSource(comboBoxEditKhoi,
                           _khoiBUS.LayDT_Khoi(),
                           "MaKhoi", "TenKhoi", 0);
     CboUtil.SetDataSource(comboBoxEditGVCN,
                           _giaoVienBUS.LayDT_DanhSachGiaoVien(),
                           "MaGiaoVien", "TenGiaoVien", 0);
 }
Ejemplo n.º 3
0
        private void frmLapDSLop_Load(object sender, EventArgs e)
        {
            m_NamHocCtrl.HienThiComboBox(cmbNamHoc);

            CboUtil.SetDataSource(comboBoxEditGVCN,
                                  _giaoVienBUS.LayDT_DanhSachGiaoVien(),
                                  "MaGiaoVien", "TenGiaoVien", 0);
            simpleButtonThemMoi.Enabled   = false;
            simpleButtonGhiDuLieu.Enabled = false;
            simpleButtonXoa.Enabled       = false;
            txtkyhieu.Enabled             = false;
            textEditTenLop.Enabled        = false;
        }
Ejemplo n.º 4
0
 private void _Load_GridView()
 {
     gridcontrolGiaoVien.DataSource = _giaoVienBUS.LayDT_DanhSachGiaoVien();
     _Diable_Control(isAdding: false);
 }