Exemple #1
0
 private static void CheckGroupLayer(System.Collections.Generic.List <IFeatureLayer> list_0,
                                     ICompositeLayer icompositeLayer_0)
 {
     for (int i = 0; i < icompositeLayer_0.Count; i++)
     {
         ILayer layer = icompositeLayer_0.get_Layer(i);
         if (layer is IGroupLayer)
         {
             ZDEditTools.CheckGroupLayer(list_0, layer as ICompositeLayer);
         }
         else if (layer is IFeatureLayer)
         {
             IFeatureLayer item = layer as IFeatureLayer;
             if (ZDRegister.IsZDFeatureClass((layer as IFeatureLayer).FeatureClass))
             {
                 list_0.Add(item);
             }
         }
     }
 }
Exemple #2
0
 public static System.Collections.Generic.List <IFeatureLayer> GetZDLayers(IMap imap_0)
 {
     System.Collections.Generic.List <IFeatureLayer> list = new System.Collections.Generic.List <IFeatureLayer>();
     for (int i = 0; i < imap_0.LayerCount; i++)
     {
         ILayer layer = imap_0.get_Layer(i);
         if (layer is IGroupLayer)
         {
             ZDEditTools.CheckGroupLayer(list, layer as ICompositeLayer);
         }
         else if (layer is IFeatureLayer)
         {
             IFeatureLayer item = layer as IFeatureLayer;
             if (ZDRegister.IsZDFeatureClass((layer as IFeatureLayer).FeatureClass))
             {
                 list.Add(item);
             }
         }
     }
     return(list);
 }