private void BingdingCmb() { cmbVipLevel.DataSource = levelBLL.VipLevelSelectByIsVip(true); cmbVipLevel.DisplayMember = "LVNAME"; cmbVipLevel.ValueMember = "LVID"; cmbDPID.DataSource = departBLL.DepartSelect(); cmbDPID.DisplayMember = "DPNAME"; cmbDPID.ValueMember = "DPID"; }
private void BingdingCmb() { this.Invoke(new Action(() => { cmbLevel.DataSource = levelBLL.VipLevelSelectByIsVip(false); cmbLevel.DisplayMember = "LVNAME"; cmbLevel.ValueMember = "LVID"; })); }
void bg_DoWork(object sender, DoWorkEventArgs e) { vipLevelList = levelBLL.VipLevelSelectByIsVip(false); departList = departBLL.DepartSelect(); }
void bg_DoWork(object sender, DoWorkEventArgs e) { vipLVList = vipLVBLL.VipLevelSelectByIsVip(true); }