mirror of
https://github.com/yhuse/SunnyUI.git
synced 2026-10-24 17:05:10 +08:00
* UIDropDown: 解决下拉控件关闭报错
This commit is contained in:
@@ -160,7 +160,17 @@ namespace Sunny.UI
|
||||
|
||||
return itemForm;
|
||||
}
|
||||
set => itemForm = value;
|
||||
set
|
||||
{
|
||||
itemForm = value;
|
||||
|
||||
if (itemForm != null)
|
||||
{
|
||||
itemForm.ValueChanged += ItemForm_ValueChanged;
|
||||
itemForm.VisibleChanged += ItemForm_VisibleChanged;
|
||||
itemForm.Closed += ItemForm_Closed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ItemForm_Closed(object sender, ToolStripDropDownClosedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user