private void frmCapNhatThongTinLopDangKy_Load(object sender, EventArgs e) { cbCLB.DataSource = CLBServices.LayDanhSachCLB(); cbCLB.DisplayMember = "TenCLB"; cbCLB.ValueMember = "MaCLB"; foreach (TextBox tb in this.Controls.OfType <TextBox>()) { tb.TextChanged += Tb_TextChanged; } txtHocPhi.Text = _TTLop[2].ToString(); txtTenLop.Text = _TTLop[1].ToString(); txtLichHoc.Text = _TTLop[3].ToString(); txtNamHoc.Text = _TTLop[6].ToString(); cbCLB.SelectedIndex = cbCLB.FindStringExact(_TTLop[4].ToString()); }
private void onload() { bdCLB.DataSource = CLBServices.LayDanhSachCLB(); }