Add clear button to command box

This commit is contained in:
jie65535 committed 2023-10-18 23:03:25 +08:00
1 parent f5780a4366
commit b1debe0aab
3 files changed
+69 -4

No files matched your search

+17
View File
@@ -765,5 +765,22 @@ namespace GrasscutterTools.Forms
}
#endregion - 通用 General -
/// <summary>
/// 命令栏文本改变时触发
/// </summary>
private void CmbCommand_TextChanged(object sender, EventArgs e)
{
LblClearFilter.Visible = CmbCommand.Text.Length > 0;
}
/// <summary>
/// 点击清空命令栏标签时触发
/// </summary>
private void LblClearFilter_Click(object sender, EventArgs e)
{
CmbCommand.Text = "";
}
}
}