Exemple #1
0
 public ModItem(Node Node)
 {
     this.Items = new System.Collections.ObjectModel.ObservableCollection <ModItem>();
     this.Name  = Node.Name;
     this.Node  = Node;
     foreach (var child in Node.Childs)
     {
         var childItem = new ModItem(child)
         {
             Parent = this
         };
         this.Items.Add(childItem);
     }
 }
Exemple #2
0
 public ModItem()
 {
     this.Items  = new System.Collections.ObjectModel.ObservableCollection <ModItem>();
     this.Parent = null;
     this.Node   = null;
 }