* UICombobox: 增加了几个关闭过滤窗体的地方
This commit is contained in:
parent
7770fc8d3d
commit
60b74e3ba5
2
SunnyUI/Controls/UIComboBox.Designer.cs
generated
2
SunnyUI/Controls/UIComboBox.Designer.cs
generated
@ -17,6 +17,8 @@
|
|||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HideFilterForm();
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,6 +79,12 @@ namespace Sunny.UI
|
|||||||
if (Text.IsNullOrEmpty() && ShowFilter)
|
if (Text.IsNullOrEmpty() && ShowFilter)
|
||||||
FillFilterTextEmpty();
|
FillFilterTextEmpty();
|
||||||
|
|
||||||
|
foreach (var item in Parent.GetControls<UIComboBox>())
|
||||||
|
{
|
||||||
|
if (!item.Equals(this))
|
||||||
|
item.HideFilterForm();
|
||||||
|
}
|
||||||
|
|
||||||
FilterItemForm.AutoClose = false;
|
FilterItemForm.AutoClose = false;
|
||||||
if (!FilterItemForm.Visible)
|
if (!FilterItemForm.Visible)
|
||||||
{
|
{
|
||||||
|
@ -473,6 +473,11 @@ namespace Sunny.UI
|
|||||||
public virtual void Final()
|
public virtual void Final()
|
||||||
{
|
{
|
||||||
Finalize?.Invoke(this, new EventArgs());
|
Finalize?.Invoke(this, new EventArgs());
|
||||||
|
|
||||||
|
foreach (var item in this.GetControls<UIComboBox>(true))
|
||||||
|
{
|
||||||
|
item.HideFilterForm();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetStyle(UIStyle style)
|
public void SetStyle(UIStyle style)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user