//Bind data source void assignMent( ) { da = bll.GetDataTableOnly( ); if (comboBox1.InvokeRequired) { Action <string> actionDelete = (x) => { comboBox1.DataSource = da.DefaultView.ToTable(true, "GZ29"); comboBox1.DisplayMember = "GZ29"; }; this.comboBox1.Invoke(actionDelete, string.Empty); } if (comboBox2.InvokeRequired) { Action <string> actionDelete = (x) => { comboBox2.DataSource = da.DefaultView.ToTable(true, "GZ01"); comboBox2.DisplayMember = "GZ01"; }; this.comboBox2.Invoke(actionDelete, string.Empty); } if (comboBox3.InvokeRequired) { Action <string> actionDelete = (x) => { comboBox3.DataSource = da.DefaultView.ToTable(true, "GZ22"); comboBox3.DisplayMember = "GZ22"; }; this.comboBox3.Invoke(actionDelete, string.Empty); } if (comboBox4.InvokeRequired) { Action <string> actionDelete = (x) => { comboBox4.DataSource = da.DefaultView.ToTable(true, "GZ23"); comboBox4.DisplayMember = "GZ23"; }; this.comboBox4.Invoke(actionDelete, string.Empty); } if (comboBox6.InvokeRequired) { Action <string> actionDelete = (x) => { comboBox6.DataSource = da.DefaultView.ToTable(true, "GZ03"); comboBox6.DisplayMember = "GZ03"; }; this.comboBox6.Invoke(actionDelete, string.Empty); } if (lookUpEdit1.InvokeRequired) { Action <string> actionDelete = (x) => { lookUpEdit1.Properties.DataSource = bll.GetDataTableTj( ); lookUpEdit1.Properties.DisplayMember = "GZ16"; lookUpEdit1.Properties.ValueMember = "GZ32"; }; this.lookUpEdit1.Invoke(actionDelete, string.Empty); } }