private void frmIn_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { Global.frmCurrent = this.Owner; this.Owner.Show(); this.Owner = null; Business.InvokeMethod(Global.frmCurrent, "LoadData", new object[] { }); this.Close(); } if (e.KeyCode == Keys.F21) { int js = Storage.GetImpScanJs(Global.storage.jhh, Global.storage.make); if (js > 0) { frmSend frmSend = new frmSend(); Global.frmCurrent = frmSend; frmSend.Owner = this; frmSend.Show(); this.Hide(); } } if (e.KeyCode == Keys.F5) { frmFrameIn frmFrameIn = new frmFrameIn(); Global.frmCurrent = frmFrameIn; frmFrameIn.Owner = this; frmFrameIn.Show(); this.Hide(); } }
private void frmFrameIn_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { this.applyTimer.Enabled = false; Global.frmCurrent = this.Owner; this.Owner.Show(); this.Owner = null; Business.InvokeMethod(Global.frmCurrent, "LoadData", new object[] { }); this.Close(); } /* * if (e.KeyCode == Keys.F5) * { * if (txtKjh.Text.Length == 4) * { * Global.storage.kjh = txtKjh.Text; * } * applyTimer.Enabled = false; * bFrameApply = true; * frmIn frmIn = new frmIn(); * Global.frmCurrent = frmIn; * frmIn.Owner = this; * frmIn.Show(); * this.Hide(); * } */ if (e.KeyCode == Keys.F21) { if (txtKjh.Text.Length == 4) { Global.storage.kjh = txtKjh.Text; int js = Storage.GetImpScanJs(Global.storage.jhh, Global.storage.make); if (js > 0) { frmSend frmSend = new frmSend(); Global.frmCurrent = frmSend; frmSend.Owner = this; frmSend.Show(); this.Hide(); } } } }