internal bool IsSame(ProfileFunction function) { if (function.ProfileCategories.Count != this.ProfileCategories.Count) { return(false); } foreach (ProfileCategory profileCategory in function.ProfileCategories) { ProfileCategory thisCategory; if (dictionaryCategoriesBySubLabel.TryGetValue(profileCategory.SubLabel, out thisCategory)) { if (!thisCategory.IsSame(profileCategory)) { return(false); } } else { return(false); } } return(true); }
public ProfileCategory(ProfileFunction profileFunction) { this.ProfileFunction = profileFunction; this.ID = Guid.NewGuid(); this.ProfileQuestions = new ObservableCollection <ProfileQuestion>(); IsReadOnly = false; CanDelete = true; CanEdit = true; CanSelect = true; IsSelect = true; SubLabel = ""; Heading = ""; Description = ""; SetIsSelect(true); IsCustomCategory = true; }