* IHideDropDown: 修改关闭下拉弹窗可能引起的出错

This commit is contained in:
Sunny 2023-10-07 22:48:22 +08:00
parent 930302a375
commit 915c16d96f
2 changed files with 20 additions and 8 deletions

View File

@ -616,6 +616,8 @@ namespace Sunny.UI
}
public void HideDropDown()
{
try
{
if (!ShowFilter)
{
@ -628,6 +630,10 @@ namespace Sunny.UI
FilterItemForm.Close();
}
}
catch
{
}
}
[DefaultValue(false)]
[Description("不显示过滤可以自动调整下拉框宽度"), Category("SunnyUI")]

View File

@ -286,10 +286,16 @@ namespace Sunny.UI
}
public void HideDropDown()
{
try
{
if (NumPadForm != null && NumPadForm.Visible)
NumPadForm.Close();
}
catch
{
}
}
/// <summary>
/// 当InputType为数字类型时能输入的最大值