internal void RemoveCategory(ProfileCategory profileCategory) { ProfileCategories.Remove(profileCategory); if (profileCategory.SubLabel != null) { dictionaryCategoriesBySubLabel.Remove(profileCategory.SubLabel); } }
internal void AddCategory(ProfileCategory profileCategory) { ProfileCategories.Add(profileCategory); dictionaryCategoriesBySubLabel[profileCategory.SubLabel] = profileCategory; }