Esempio n. 1
0
        private static void _arrangeLayersDepth(IEnumerable <Layerage> layerages, int depth)
        {
            foreach (Layerage layerage in layerages)
            {
                ILayer layer = layerage.Self;

                layer.Control.Depth = depth;

                LayerageCollection._arrangeLayersDepth(layerage.Children, depth + 1);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Arrange all layers's depth.
 /// </summary>
 /// <param name="layerageCollection"> The layerage-collection. </param>
 public static void ArrangeLayersDepth(LayerageCollection layerageCollection) => LayerageCollection._arrangeLayersDepth(layerageCollection.RootLayerages, 0);