WSVerfolgung ProcessDialogKey
This commit is contained in:
parent
84e62082dd
commit
b2b5d31886
@ -286,9 +286,22 @@ namespace Deckungsbeitrag.AA_Forms
|
||||
}
|
||||
if (Form.ModifierKeys == Keys.None && keyData == Keys.R)
|
||||
{
|
||||
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
//this.SuspendLayout();
|
||||
if (((Maschine)this.maschine).MaschineID == 1)
|
||||
{
|
||||
if (this.auftrag == null) MessageBox.Show($"Kein Kunde ausgewählt. Bitte JETZT erledigen.", "ACHTUNG", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
else _monitor.WS_1_Transport = true;
|
||||
}
|
||||
if (((Maschine)this.maschine).MaschineID == 2)
|
||||
{
|
||||
if (this.auftrag == null) MessageBox.Show($"Kein Kunde ausgewählt. Bitte JETZT erledigen.", "ACHTUNG", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
else _monitor.WS_2_Transport = true;
|
||||
}
|
||||
//this.ResumeLayout();
|
||||
Cursor.Current = Cursors.Default;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return base.ProcessDialogKey(keyData);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user