private static Dictionary <string, Identify.IdentifyFeatureClassItem> GetFeatureClasses(ObjectIdCollection ids)
        {
            if (ids == null)
            {
                return(Identify.GetFeatureClasses());
            }
            if (ids.Count == 0)
            {
                return(Identify.GetFeatureClasses());
            }
            Dictionary <string, Identify.IdentifyFeatureClassItem> result;

            if (ids.Count > AfaDocData.ActiveDocData.DocDataset.FeatureClasses.Count + AfaDocData.ActiveDocData.DocDataset.FeatureServices.Count)
            {
                result = Identify.SearchByFC(ids);
            }
            else
            {
                result = Identify.SearchByID(ids);
            }
            return(result);
        }
 private void PopulateFeatureClassPicker(MSCFeatureClass currentTopFC, MSCFeatureClass currentSubtype, ObjectIdCollection ids)
 {
     try
     {
         System.Windows.Forms.Application.UseWaitCursor = true;
         Dictionary <string, Identify.IdentifyFeatureClassItem> featureClasses = Identify.GetFeatureClasses(ids);
         this.FeatureClassComboBox.ItemsSource = featureClasses;
         bool flag = false;
         if (currentTopFC != null)
         {
             int num = 0;
             foreach (KeyValuePair <string, Identify.IdentifyFeatureClassItem> current in featureClasses)
             {
                 if (current.Value.Name == currentTopFC.Name)
                 {
                     this.FeatureClassComboBox.SelectedIndex = num;
                     flag = true;
                     break;
                 }
                 num++;
             }
         }
         if (!flag)
         {
             this.FeatureClassComboBox.SelectedIndex = 0;
         }
         this.PopulateSubtypeClassPicker(((KeyValuePair <string, Identify.IdentifyFeatureClassItem>) this.FeatureClassComboBox.SelectedItem).Value, currentSubtype);
         System.Windows.Forms.Application.UseWaitCursor = false;
     }
     catch (SystemException ex)
     {
         System.Windows.Forms.Application.UseWaitCursor = false;
         string arg_BE_0 = ex.Message;
     }
 }