コード例 #1
0
 public void CheckedComboBoxEdit_ClearItems(DevExpress.XtraEditors.CheckedComboBoxEdit control)
 {
     if (control.InvokeRequired)
     {
         control.Invoke(new Action(() =>
         {
             control.Properties.Items.Clear();
         }));
     }
     else
     {
         control.Properties.Items.Clear();
     }
 }
コード例 #2
0
 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);
     }
 }