public void CheckedComboBoxEdit_ClearItems(DevExpress.XtraEditors.CheckedComboBoxEdit control) { if (control.InvokeRequired) { control.Invoke(new Action(() => { control.Properties.Items.Clear(); })); } else { control.Properties.Items.Clear(); } }
public void CheckedComboBoxEdit_AddItems(DevExpress.XtraEditors.CheckedComboBoxEdit control, object value, string description, CheckState checkState, bool enabled) { if (control.InvokeRequired) { control.Invoke(new Action(() => { control.Properties.Items.Add(value, description, checkState, enabled); })); } else { control.Properties.Items.Add(value, description, checkState, enabled); } }