private static void _arrangeLayersChildrenZero(IEnumerable <Layerage> layerages) { foreach (Layerage layerage in layerages) { ILayer layer = layerage.Self; layer.Control.ChildrenCount = layerage.Children.Count; LayerageCollection._arrangeLayersChildrenZero(layerage.Children); } }
/// <summary> /// Arrange all layers's "children is zero". /// </summary> public static void ArrangeLayersChildrenZero(LayerageCollection layerageCollection) => LayerageCollection._arrangeLayersChildrenZero(layerageCollection.RootLayerages);