ToggleChildren() private method

private ToggleChildren ( bool toggle ) : void
toggle bool
return void
 // Enable Item
 private void ToggleChildren(bool toggle)
 {
     foreach (var child in children)
     {
         SketchUpNode item = child as SketchUpNode;
         item.Info.enabled = toggle;
         item.ToggleChildren(toggle);
     }
 }
Exemplo n.º 2
0
 private void ToggleChildren(bool toggle)
 {
     foreach (TreeViewItem item in this.children)
     {
         SketchUpNode node = item as SketchUpNode;
         node.Info.enabled = toggle;
         node.ToggleChildren(toggle);
     }
 }
Exemplo n.º 3
0
 private void ToggleChildren(bool toggle)
 {
     foreach (TreeViewItem current in this.children)
     {
         SketchUpNode sketchUpNode = current as SketchUpNode;
         sketchUpNode.Info.enabled = toggle;
         sketchUpNode.ToggleChildren(toggle);
     }
 }
Exemplo n.º 4
0
 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);
         }
     }
 }