mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-10 08:51:34 +08:00
Add HotKey Page (close #190)
This commit is contained in:
@@ -248,5 +248,18 @@ namespace GrasscutterTools.Pages
|
||||
LoadCustomCommandControls(Resources.CustomCommands);
|
||||
}
|
||||
}
|
||||
|
||||
public Action<string> OnAddHotKey;
|
||||
|
||||
private void BtnAddHotKey_Click(object sender, EventArgs e)
|
||||
{
|
||||
var name = TxtCustomName.Text.Trim();
|
||||
if (string.IsNullOrEmpty(name))
|
||||
{
|
||||
MessageBox.Show(Resources.CommandTagCannotBeEmpty, Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
OnAddHotKey?.Invoke(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user