* UICombobox: 更新TextChanged事件

This commit is contained in:
Sunny 2021-06-15 11:53:27 +08:00
parent d4b9fe39e4
commit bfd641cbf8
7 changed files with 8 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -42,10 +42,18 @@ namespace Sunny.UI
ListBox.DisplayMemberChanged += Box_DisplayMemberChanged;
ListBox.ValueMemberChanged += Box_ValueMemberChanged;
ListBox.SelectedValueChanged += ListBox_SelectedValueChanged;
edit.TextChanged += Edit_TextChanged;
DropDownWidth = 150;
fullControlSelect = true;
}
public new EventHandler TextChanged;
private void Edit_TextChanged(object sender, EventArgs e)
{
TextChanged?.Invoke(this, e);
}
private void ListBox_SelectedValueChanged(object sender, EventArgs e)
{
SelectedValueChanged?.Invoke(this, e);