update SunnyUI/Forms/UIEditForm.cs.
UITextBox类型为Double的时候会导致CheckRange无法验证最大值 Signed-off-by: 我是你欧尼桑 <952135763@qq.com>
This commit is contained in:
parent
6121540268
commit
61ac5ac31a
@ -1,4 +1,4 @@
|
|||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* SunnyUI 开源控件库、工具类库、扩展类库、多页面开发框架。
|
* SunnyUI 开源控件库、工具类库、扩展类库、多页面开发框架。
|
||||||
* CopyRight (C) 2012-2022 ShenYongHua(沈永华).
|
* CopyRight (C) 2012-2022 ShenYongHua(沈永华).
|
||||||
* QQ群:56829229 QQ:17612584 EMail:SunnyUI@QQ.Com
|
* QQ群:56829229 QQ:17612584 EMail:SunnyUI@QQ.Com
|
||||||
@ -500,7 +500,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
protected bool CheckRange(UITextBox edit, double min, double max, string desc)
|
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)
|
if (!result)
|
||||||
{
|
{
|
||||||
this.ShowWarningDialog(desc);
|
this.ShowWarningDialog(desc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user