* UIComboDataGridView: 增加ShowDropDown()

* UIComboTreeView: 增加ShowDropDown()
This commit is contained in:
Sunny 2024-03-22 09:47:34 +08:00
parent c48ceacc27
commit 71bee928b5
2 changed files with 12 additions and 0 deletions

View File

@ -29,6 +29,7 @@
* 2022-11-30: V3.3.0 Clear方法 * 2022-11-30: V3.3.0 Clear方法
* 2023-07-25: V3.4.1 DataGridView * 2023-07-25: V3.4.1 DataGridView
* 2023-09-25: V3.5.0 ClearFilter * 2023-09-25: V3.5.0 ClearFilter
* 2024-03-22: V3.6.5 ShowDropDown()
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -109,6 +110,11 @@ namespace Sunny.UI
item.ComboDataGridViewFilterChanged += Item_ComboDataGridViewFilterChanged; item.ComboDataGridViewFilterChanged += Item_ComboDataGridViewFilterChanged;
} }
public void ShowDropDown()
{
UIComboDataGridView_ButtonClick(this, EventArgs.Empty);
}
public override void Clear() public override void Clear()
{ {
base.Clear(); base.Clear();

View File

@ -25,6 +25,7 @@
* 2023-02-04: V3.3.1 * 2023-02-04: V3.3.1
* 2023-04-02: V3.3.4 * 2023-04-02: V3.3.4
* 2023-06-12: V3.3.8 使 * 2023-06-12: V3.3.8 使
* 2024-03-22: V3.6.5 ShowDropDown()
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -233,6 +234,11 @@ namespace Sunny.UI
} }
} }
public void ShowDropDown()
{
UIComboTreeView_ButtonClick(this, EventArgs.Empty);
}
private void UIComboTreeView_ButtonClick(object sender, EventArgs e) private void UIComboTreeView_ButtonClick(object sender, EventArgs e)
{ {
if (NeedDrawClearButton) if (NeedDrawClearButton)