private void ThemLop_Load(object sender, EventArgs e) { List <string> khoaHocs = Lbus.GetDanhSachKhoaHoc(); khoaHocs.Add("Thêm khoá học"); comboBoxKhoaHoc.DataSource = khoaHocs; hocSinhs = HSbus.XemTatCaHS(); dataGridViewDS_HS.DataSource = null; dataGridViewDS_HS.DataSource = hocSinhs; AddCotCheckbox(); ReName(); comboBoxGVCN.DataSource = GVbus.XemDanhSachTenGV(); }
private void DanhSachLop_Load(object sender, EventArgs e) { lops = bus.GetDanhSachLop(); dataGridViewDS_Lop.DataSource = lops; textBoxtenGVCN.Text = bus.GetTenGiaoVien(dataGridViewDS_Lop.CurrentRow.Cells[0].Value.ToString()); comboBoxKhoaHoc.DataSource = bus.GetDanhSachKhoaHoc(); }
private void ThongTinLop_Load(object sender, EventArgs e) { comboBoxKhoaHoc.DataSource = Lbus.GetDanhSachKhoaHoc(); hocSinhs = HSbus.XemTatCaHSLop(this.ID); dataGridViewDS_HS.DataSource = hocSinhs; comboBoxGVCN.DataSource = GVbus.XemDanhSachTenGV(); textBoxLop.Text = Lbus.GetTenLop(ID); }
private void DanhSachLop_Load(object sender, EventArgs e) { lops = bus.GetDanhSachLop(); dataGridViewDS_Lop.DataSource = lops; ReName(); textBoxtenGVCN.Text = bus.GetTenGiaoVien(dataGridViewDS_Lop.CurrentRow.Cells[0].Value.ToString()); List <string> danhSachKhoaHoc = bus.GetDanhSachKhoaHoc(); danhSachKhoaHoc.Insert(0, "None"); comboBoxKhoaHoc.DataSource = danhSachKhoaHoc; }
private void ThongTinLop_Load(object sender, EventArgs e) { List <string> khs = Lbus.GetDanhSachKhoaHoc(); comboBoxKhoaHoc.DataSource = khs; comboBoxKhoaHoc.SelectedItem = Lbus.GetKhoaHoc(ID); hocSinhs = HSbus.XemTatCaHSLop(this.ID); dataGridViewDS_HS.DataSource = hocSinhs; ReName(); List <string> gvs = GVbus.XemDanhSachTenGV(); comboBoxGVCN.DataSource = gvs; textBoxLop.Text = Lbus.GetTenLop(ID); comboBoxGVCN.SelectedItem = gvs.FirstOrDefault(x => x.Contains(tenGV)); }
private void ThemLop_Load(object sender, EventArgs e) { comboBoxKhoaHoc.DataSource = bus.GetDanhSachKhoaHoc(); }