WSVerfolgung ProcessDialogKey

This commit is contained in:
Kilian Wirl 2025-12-10 13:15:18 +01:00
parent 84e62082dd
commit b2b5d31886

View File

@ -286,9 +286,22 @@ namespace Deckungsbeitrag.AA_Forms
} }
if (Form.ModifierKeys == Keys.None && keyData == Keys.R) 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); return base.ProcessDialogKey(keyData);
} }