feat: 新增时间输入和Alt按钮快捷键
This commit is contained in:
@@ -28,6 +28,9 @@ namespace Lskj.PubSpec2
|
||||
{
|
||||
public partial class FrmMain : BaseForm
|
||||
{
|
||||
private readonly AltButtonShortcutManager mAltButtonShortcuts =
|
||||
new AltButtonShortcutManager();
|
||||
|
||||
private bool _existsPid = false;
|
||||
/// <summary>
|
||||
/// 主键
|
||||
@@ -55,6 +58,20 @@ namespace Lskj.PubSpec2
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
InitializeAltButtonShortcuts();
|
||||
}
|
||||
|
||||
private void InitializeAltButtonShortcuts()
|
||||
{
|
||||
mAltButtonShortcuts.Register(btnExport, Keys.E);
|
||||
mAltButtonShortcuts.Register(btnRefresh, Keys.R);
|
||||
}
|
||||
|
||||
protected override bool ProcessCmdKey(
|
||||
ref System.Windows.Forms.Message msg, Keys keyData)
|
||||
{
|
||||
return mAltButtonShortcuts.ProcessKey(keyData) ||
|
||||
base.ProcessCmdKey(ref msg, keyData);
|
||||
}
|
||||
|
||||
private void ReleaseResourcesForDispose()
|
||||
|
||||
Reference in New Issue
Block a user