public static string MaskedValue(this NumpadParams numpadParams)
        {
            var value    = numpadParams.Value;
            var decIndex = numpadParams.Mask.IndexOf(".");

            if (value.Length > decIndex && decIndex >= 0)
            {
                value = value.Insert(decIndex, ".");
            }

            return(value);
        }
        public static bool MinMaxRegexValid(this NumpadParams numpadParams, bool skipMinMaxCheck)
        {
            int    minVal = InputStringToInt(numpadParams.MinPattern);
            int    maxVal = InputStringToInt(numpadParams.MaxPattern);
            int    curVal = InputStringToInt(numpadParams.Value);
            string regex  = numpadParams.Regex;

            bool output      = false;
            bool minMaxValid = minVal <= curVal && maxVal >= curVal;
            bool regexValid  = RegexMatchValue(numpadParams.Value, regex);

            output = (minMaxValid && regexValid) || skipMinMaxCheck;

            return(output);
        }