public bool DeepEquals(DestinyItemCategoryDefinition other) { return(other != null && Deprecated == other.Deprecated && DisplayProperties.DeepEquals(other.DisplayProperties) && GrantDestinyBreakerType == other.GrantDestinyBreakerType && GrantDestinyClass == other.GrantDestinyClass && GrantDestinyItemType == other.GrantDestinyItemType && GrantDestinySubType == other.GrantDestinySubType && GroupCategoryOnly == other.GroupCategoryOnly && GroupedCategories.DeepEqualsReadOnlyCollections(other.GroupedCategories) && IsPlug == other.IsPlug && ItemTypeRegex == other.ItemTypeRegex && ParentCategories.DeepEqualsReadOnlyCollections(other.ParentCategories) && ShortTitle == other.ShortTitle && Visible == other.Visible && PlugCategoryIdentifier == other.PlugCategoryIdentifier && ItemTypeRegexNot == other.ItemTypeRegexNot && OriginBucketIdentifier == other.OriginBucketIdentifier && TraitId == other.TraitId && Blacklisted == other.Blacklisted && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
//By Johann /// <summary> /// Loads the parent categories into the BindableCollection /// </summary> private void LoadParentCategories() { ParentCategories.Clear(); ParentCategories.AddRange(Category.GetCategoriesByParent(null)); }
public bool HasTag(string tag) { return(ParentCategories.Contains(tag)); }