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; } }
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); }
public ProfileQuestion(ProfileCategory category, RankingManager rankingManger) { this.Category = category; this.SubFunCatLabel = category.SubFunCatLabel; this.RankingManger = rankingManger; }
public ProfileFunction(RankingManager rankingManager) { this.ProfileCategories = new ObservableCollection <ProfileCategory>(); this.RankingManger = rankingManager; }