mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-23 20:29:45 +08:00
Add clear button to all filter
This commit is contained in:
@@ -261,5 +261,21 @@ namespace GrasscutterTools.Pages
|
||||
MessageBox.Show(ex.ToString(), Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 任务标签输入栏改变时触发
|
||||
/// </summary>
|
||||
private void TxtTag_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
LblClearFilter.Visible = TxtTag.Text.Length > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 点击清空任务标签输入栏标签时触发
|
||||
/// </summary>
|
||||
private void LblClearFilter_Click(object sender, EventArgs e)
|
||||
{
|
||||
TxtTag.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user