public static Func <string> ValidateLessEq(string fieldName, NumericUpDown control, string refName, NumericUpDown reference)
 {
     return(() => {
         if (control.Value > reference.Value)
         {
             return fieldName + " must be less than or equal to " + refName;
         }
         else
         {
             return ValidateNumericUpDownFunc(fieldName, control)();
         }
     });
 }
 public static Func <string> ValidateGreater(string fieldName, NumericUpDown control, string refName, NumericUpDown reference)
 {
     return(() => {
         if (control.Value <= reference.Value)
         {
             return fieldName + " must be greater than " + refName;
         }
         else
         {
             return ValidateNumericUpDownFunc(fieldName, control)();
         }
     });
 }