예제 #1
0
 public CategoryTree(Dictionary <Guid, CategoryNode> categories, CategoryNode root)
 {
     this.Root       = root;
     this.Categories = categories;
 }
예제 #2
0
 public void SetParent(CategoryNode category)
 {
     category.Children.Add(this);
     this.ParentId = category.Id;
 }