コード例 #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
ファイル: ProfileFunction.cs プロジェクト: vcubefame/CSET
 public ProfileFunction(RankingManager rankingManager)
 {
     this.ProfileCategories = new ObservableCollection <ProfileCategory>();
     this.RankingManger     = rankingManager;
 }