/// <summary> /// Return a list of the child asset types of the specified category /// </summary> /// <param name="category"></param> /// <returns></returns> public AssetTypeList EnumerateChildren(int category) { AssetTypeList children = new AssetTypeList(); foreach (AssetType assettype in this) { if (assettype.ParentID == category) { children.Add(assettype); } } return(children); }
/// <summary> /// Return a list of the Asset Type Categories /// </summary> /// <returns></returns> public AssetTypeList EnumerateCategories() { AssetTypeList categories = new AssetTypeList(); foreach (AssetType assettype in this) { if (assettype.ParentID == 0) { categories.Add(assettype); } } return(categories); }