update SunnyUI/Forms/UIEditForm.cs.

UITextBox类型为Double的时候会导致CheckRange无法验证最大值

Signed-off-by: 我是你欧尼桑 <952135763@qq.com>
This commit is contained in:
我是你欧尼桑 2022-11-21 05:45:44 +00:00 committed by Gitee
parent 6121540268
commit 61ac5ac31a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,4 +1,4 @@
/******************************************************************************
/******************************************************************************
* SunnyUI
* CopyRight (C) 2012-2022 ShenYongHua().
* QQ群56829229 QQ17612584 EMailSunnyUI@QQ.Com
@ -500,7 +500,7 @@ namespace Sunny.UI
protected bool CheckRange(UITextBox edit, double min, double max, string desc)
{
bool result = edit.DoubleValue >= min && edit.IntValue <= max;
bool result = edit.DoubleValue >= min && edit.DoubleValue <= max;
if (!result)
{
this.ShowWarningDialog(desc);