public IfThenElse() { Id = IDUtils.NewGuid(); IfCondition = new IfCondition(); ElseIfs = new List<ElseIf>(); }
public IfThenElse() { Id = IDUtils.NewGuid(); IfCondition = new IfCondition(); ElseIfs = new List <ElseIf>(); }
public ElseIf() { IfCondition = new IfCondition(); }
private static IfCondition CreateIfCondition(List<CondGroupVM> condGroups) { StringBuilder buf = new StringBuilder(); foreach (CondGroupVM condGroup in condGroups) { buf.Append(condGroup.Expression(BaseVM.EMPTY_VALUE)); } IfCondition ifCondition = new IfCondition(); ifCondition.Code = buf.ToString(); ifCondition.QuestionId = condGroups[0].FirstQuestionConstruct.Id; return ifCondition; }