private void ShowExportItemLayers(IList <IILayer> exportedLayers)
        {
            if (exportedLayers == null)
            {
                return;
            }

            foreach (IILayer layer in LayerUtilities.RootLayers())
            {
                layer.Hide(true, true);
            }

            foreach (IILayer layer in exportedLayers)
            {
                List <IILayer> treeLayers = layer.LayerTree().ToList();
                treeLayers.Add(layer);

                foreach (IILayer l in treeLayers)
                {
                    l.Hide(false, false);
                    foreach (IINode layerNode in l.LayerNodes())
                    {
                        layerNode.Hide(false);
                    }
                }
            }
        }
Пример #2
0
        public static void ShowExportItemLayers(IList <IILayer> exportedLayers)
        {
            if (exportedLayers == null)
            {
                return;
            }

            foreach (IILayer rootLayer in LayerUtilities.RootLayers())
            {
                rootLayer.Hide(true, true);
                foreach (IILayer lay in rootLayer.LayerTree())
                {
                    lay.Hide(true, true);
                }
            }

            foreach (IILayer layer in exportedLayers)
            {
                layer.Hide(false, false);
                foreach (IINode layerNode in layer.LayerNodes())
                {
                    layerNode.Hide(false);
                }
            }
        }