mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-16 10:32:58 +08:00
Add clear button to all filter
This commit is contained in:
@@ -54,6 +54,15 @@ namespace GrasscutterTools.Pages
|
||||
private void TxtAchievementFilter_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateList();
|
||||
LblClearFilter.Visible = TxtAchievementFilter.Text.Length > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 点击清空过滤器标签时触发
|
||||
/// </summary>
|
||||
private void LblClearFilter_Click(object sender, EventArgs e)
|
||||
{
|
||||
TxtAchievementFilter.Clear();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -100,5 +109,6 @@ namespace GrasscutterTools.Pages
|
||||
{
|
||||
GenSelected("/achievement progress", NUDProgress.Text);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user