public MinMaxRule CreateMinMaxRule(long min, long max, NullValueTreatment nullValueTreatment = NullValueTreatment.Ignore)
        {
            var minMaxRule = new MinMaxRule()
            {
                Minimum            = min,
                Maximum            = max,
                NullValueTreatment = nullValueTreatment,
                IsActive           = true,
            };

            Assigner.AddErrorTypes(minMaxRule);
            return(minMaxRule);
        }
示例#2
0
 public MinMaxRuleEditViewViewModel(MinMaxRule r)
     : base(r)
 {
     _rule = r;
 }