Exemple #1
0
 /// <summary>
 /// Creates a validator based on a list.
 /// </summary>
 /// <param name="source">The list value.</param>
 /// <returns>Returns a new validator.</returns>
 public static DataValidator CreateListValidator(string source)
 {
     return(new DataValidator(AreaCondition.FromSource(source))
     {
         type = CriteriaType.List
     });
 }
Exemple #2
0
 /// <summary>
 /// Creates a validator based on a formula list.
 /// </summary>
 /// <param name="formula">The formula condition.</param>
 /// <returns>Returns a new validator.</returns>
 public static DataValidator CreateFormulaListValidator(string formula)
 {
     return(new DataValidator(AreaCondition.FromFormula(formula))
     {
         type = CriteriaType.List
     });
 }