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

ValidateGreaterEq() public static method

public static ValidateGreaterEq ( 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> ValidateGreaterEq(string fieldName, NumericUpDown control, string refName, NumericUpDown reference)
        {
            return () => {
                if (control.Value < reference.Value)
                    return fieldName + " must be greater than or equal to " + refName;
                else
                    return ValidateNumericUpDownFunc(fieldName, control)();
            };
        }