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); } }
public ModItem() { this.Items = new System.Collections.ObjectModel.ObservableCollection <ModItem>(); this.Parent = null; this.Node = null; }