private void LayDanhSachMonHoc() { var lst = MONHOCBUS.LayDanhSachMonHoc("", 0); cboMonHoc.DataSource = lst; cboMonHoc.ValueMember = "MAMONHOC"; cboMonHoc.DisplayMember = "TENMONHOC"; }
private void btnTimMH_Click(object sender, EventArgs e) { string tenmh = ""; long maBM = 0; if (txtTimMH.Text != "") { tenmh = txtTimMH.Text; } if (cbTimBM.SelectedIndex != -1) { maBM = ((BOMONDTO)cbTimBM.SelectedItem).MABM; } dgvMonHoc.DataSource = MONHOCBUS.LayDanhSachMonHoc(tenmh, maBM); }
private void btnResetTim_Click(object sender, EventArgs e) { cbTimBM.SelectedIndex = -1; txtTimMH.Text = ""; dgvMonHoc.DataSource = MONHOCBUS.LayDanhSachMonHoc("", 0); }
public void LoadMonHoc() { dgvMonHoc.DataSource = MONHOCBUS.LayDanhSachMonHoc("", 0); }
private void LoadMonHoc() { cboMonHoc.DataSource = MONHOCBUS.LayDanhSachMonHoc("", 0); }