예제 #1
0
        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);
        }
예제 #2
0
        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;
        }