Treefrog.Windows.Controllers.ValidationController.ValidateLess C# (CSharp) Method

ValidateLess() public static method

public static ValidateLess ( string fieldName, NumericUpDown control, string refName, NumericUpDown reference ) : Func
fieldName string
control System.Windows.Forms.NumericUpDown
refName string
reference System.Windows.Forms.NumericUpDown
return Func
        public static Func<string> ValidateLess(string fieldName, NumericUpDown control, string refName, NumericUpDown reference)
        {
            return () => {
                if (control.Value >= reference.Value)
                    return fieldName + " must be less than " + refName;
                else
                    return ValidateNumericUpDownFunc(fieldName, control)();
            };
        }