Exemple #1
0
 public IfThenElse()
 {
     Id = IDUtils.NewGuid();
     IfCondition = new IfCondition();
     ElseIfs = new List<ElseIf>();
 }
Exemple #2
0
 public IfThenElse()
 {
     Id          = IDUtils.NewGuid();
     IfCondition = new IfCondition();
     ElseIfs     = new List <ElseIf>();
 }
Exemple #3
0
 public ElseIf()
 {
     IfCondition = new IfCondition();
 }
Exemple #4
0
 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;
 }