예제 #1
0
        public ProfileQuestion(ProfileCategory category, RankingManager rankingManger, ProfileImportQuestion importQuestion) : this(category, rankingManger)
        {
            IsCustomQuestion = true;
            Weight           = 10;
            CustomQuestionID = importQuestion.ID;
            CanEdit          = true;
            CanDelete        = true;
            CanSelect        = true;
            IsReadOnly       = false;

            Question         = importQuestion.QuestionObj.Question;
            Comments         = importQuestion.QuestionObj.Comments;
            References       = importQuestion.QuestionObj.References;
            SupplementalInfo = importQuestion.QuestionObj.SupplementalInfo;
            IsSelect         = true;

            if (category.DoesSubLabelNumberAlreadyExist(this, importQuestion.QuestionObj.SubLabelNumber))
            {
                SubLabelNumber = category.GetNextSubLabelNumber();
            }
            else
            {
                SubLabelNumber = importQuestion.QuestionObj.SubLabelNumber;
            }
        }
예제 #2
0
        internal static ProfileQuestion CreateNewQuestion(ProfileCategory profileCategory, RankingManager rankingManager)
        {
            int             nextSubLabelNumber = profileCategory.GetNextSubLabelNumber();
            ProfileQuestion question           = new ProfileQuestion(profileCategory, rankingManager)
            {
                SubFunCatLabel = profileCategory.SubFunCatLabel,
                SubLabelNumber = nextSubLabelNumber
            };

            question.Weight           = 10;
            question.CanDelete        = true;
            question.CanEdit          = true;
            question.CanSelect        = true;
            question.IsCustomQuestion = true;
            question.CustomQuestionID = Guid.NewGuid();
            question.IsSelect         = true;

            return(question);
        }
예제 #3
0
 public ProfileQuestion(ProfileCategory category, RankingManager rankingManger)
 {
     this.Category       = category;
     this.SubFunCatLabel = category.SubFunCatLabel;
     this.RankingManger  = rankingManger;
 }
예제 #4
0
 public ProfileFunction(RankingManager rankingManager)
 {
     this.ProfileCategories = new ObservableCollection <ProfileCategory>();
     this.RankingManger     = rankingManager;
 }