/// <summary> /// Implements <see cref="IAnswerSurveyQuestion{SurveyErrorState}.AskQuestion"/> /// </summary> protected int AskErrorQuestion(object contextElement) { ORMModel model = ResolvedModel; return((model == null) ? -1 : (int)(ModelError.HasErrors(this, ModelErrorUses.DisplayPrimary, model.ModelErrorDisplayFilter) ? SurveyErrorState.HasError : SurveyErrorState.NoError)); }
/// <summary> /// Implements <see cref="IAnswerSurveyQuestion{SurveyErrorState}.AskQuestion"/> /// </summary> protected int AskErrorQuestion(object contextElement) { FactType factType; ORMModel model; return((null == (factType = FactType) || null == (model = factType.ResolvedModel)) ? -1 : (int)(ModelError.HasErrors(this, ModelErrorUses.DisplayPrimary, model.ModelErrorDisplayFilter) ? SurveyErrorState.HasError : SurveyErrorState.NoError)); }
/// <summary> /// Implements <see cref="IAnswerSurveyQuestion{SurveyErrorState}.AskQuestion"/> /// </summary> protected int AskErrorQuestion(object contextElement) { ElementGroupingSet groupingSet; ORMModel model; return((null == (groupingSet = GroupingSet) || null == (model = groupingSet.Model)) ? -1 : (int)(ModelError.HasErrors(this, ModelErrorUses.DisplayPrimary, model.ModelErrorDisplayFilter) ? SurveyErrorState.HasError : SurveyErrorState.NoError)); }