Exemplo n.º 1
0
 //By Johann
 /// <summary>
 /// Loads the child categories of the selected parent category into the BindableCollection
 /// </summary>
 private void LoadChildCategories()
 {
     ChildCategories.Clear();
     if (SelectedParentCategory != null)
     {
         ChildCategories.AddRange(Category.GetCategoriesByParent(SelectedParentCategory.Id));
     }
 }
Exemplo n.º 2
0
 protected override void ClearNavigationProperties()
 {
     ChildCategories.Clear();
     ParentCategory = null;
 }