From 0dfb42a5ce93742b16a49ee7d6d0f21542855ca5 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Fri, 28 Apr 2023 15:09:41 +0200 Subject: [PATCH] Make CheckInteger public --- Elwig/Helpers/Validator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elwig/Helpers/Validator.cs b/Elwig/Helpers/Validator.cs index 9a88049..79cf91d 100644 --- a/Elwig/Helpers/Validator.cs +++ b/Elwig/Helpers/Validator.cs @@ -34,7 +34,7 @@ namespace Elwig.Helpers { return CheckInteger(input, required, -1); } - private static ValidationResult CheckInteger(TextBox input, bool required, int maxLen) { + public static ValidationResult CheckInteger(TextBox input, bool required, int maxLen) { string text = ""; int pos = input.CaretIndex; for (int i = 0; i < input.Text.Length; i++) {