mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-15 10:11:35 +08:00
Add clear button to command box
This commit is contained in:
@@ -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 = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user