Beispiel #1
0
 private void LoadEntities(IEnumerable <EntityMetadata> entities)
 {
     try
     {
         CmbEntities.BeginUpdate();
         CmbEntities.Items.Clear();
         CmbEntities.Items.AddRange(entities.ToObjectCollectionArray());
     }
     finally
     {
         CmbEntities.EndUpdate();
         Enable(true);
     }
 }
        private void LoadEntities(IEnumerable <EntityMetadata> entities)
        {
            try
            {
                CmbAttributeEntities.BeginUpdate();
                CmbEntities.BeginUpdate();

                CmbAttributeEntities.Items.Clear();
                CmbEntities.Items.Clear();
                CmbEntities.Text = null;

                var values = entities.ToObjectCollectionArray();

                CmbAttributeEntities.Items.AddRange(values);
                CmbEntities.Items.AddRange(values);
            }
            finally
            {
                CmbAttributeEntities.EndUpdate();
                CmbEntities.EndUpdate();
                Enable(true);
            }
        }