// Enable Item private void ToggleChildren(bool toggle) { foreach (var child in children) { SketchUpNode item = child as SketchUpNode; item.Info.enabled = toggle; item.ToggleChildren(toggle); } }
private void ToggleChildren(bool toggle) { foreach (TreeViewItem item in this.children) { SketchUpNode node = item as SketchUpNode; node.Info.enabled = toggle; node.ToggleChildren(toggle); } }
private void ToggleChildren(bool toggle) { foreach (TreeViewItem current in this.children) { SketchUpNode sketchUpNode = current as SketchUpNode; sketchUpNode.Info.enabled = toggle; sketchUpNode.ToggleChildren(toggle); } }
private void ToggleChildren(bool toggle) { using (List <TreeViewItem> .Enumerator enumerator = this.children.GetEnumerator()) { while (enumerator.MoveNext()) { SketchUpNode current = enumerator.Current as SketchUpNode; current.Info.enabled = toggle; current.ToggleChildren(toggle); } } }