feat: 新增时间输入和Alt按钮快捷键
This commit is contained in:
@@ -44,9 +44,29 @@ namespace Lskj.PubAccraditation
|
||||
/// </summary>
|
||||
public partial class FrmAccraditation : BaseForm
|
||||
{
|
||||
private readonly AltButtonShortcutManager mAltButtonShortcuts =
|
||||
new AltButtonShortcutManager();
|
||||
|
||||
public FrmAccraditation()
|
||||
{
|
||||
InitializeComponent();
|
||||
InitializeAltButtonShortcuts();
|
||||
}
|
||||
|
||||
private void InitializeAltButtonShortcuts()
|
||||
{
|
||||
mAltButtonShortcuts.Register(btnSave, Keys.S);
|
||||
mAltButtonShortcuts.Register(btnSpare, Keys.P);
|
||||
mAltButtonShortcuts.Register(btnClose, Keys.Q);
|
||||
mAltButtonShortcuts.Register(btnBack, Keys.N);
|
||||
mAltButtonShortcuts.Register(btnAccradit, Keys.Y);
|
||||
}
|
||||
|
||||
protected override bool ProcessCmdKey(
|
||||
ref System.Windows.Forms.Message msg, Keys keyData)
|
||||
{
|
||||
return mAltButtonShortcuts.ProcessKey(keyData) ||
|
||||
base.ProcessCmdKey(ref msg, keyData);
|
||||
}
|
||||
|
||||
private void ReleaseResourcesForDispose()
|
||||
@@ -2203,8 +2223,8 @@ namespace Lskj.PubAccraditation
|
||||
{
|
||||
this.btnAccradit.Enabled = true;
|
||||
this.btnRemindAccradit.Visible = this.btnRemindBack.Visible = this.btnSave.Visible = this.btnClose.Visible = this.btnSpare.Visible = this.btnBack.Visible = false;
|
||||
this.btnAccradit.Text = "确认(&Y)";
|
||||
this.btnAccradit.Text = "确认(&Y)";
|
||||
this.btnAccradit.Text = "确认(Y)";
|
||||
this.btnAccradit.Text = "确认(Y)";
|
||||
this.label_auditPerson.Text = "确认意见";
|
||||
this.label_date.EditText = "会签人";
|
||||
this.txtRemark.Text = "确认";
|
||||
|
||||
Reference in New Issue
Block a user