From 1160cbca65aa6f955dff858afefeb6ecd41256b9 Mon Sep 17 00:00:00 2001 From: Janco Kock Date: Mon, 2 Nov 2015 13:00:13 +0100 Subject: [PATCH] Doktor receives and update help text --- ErgometerIPR/ErgometerApplication/ClientApplicatie.cs | 6 ++++-- .../ErgometerDoctorApplication/Client/ClientThread.cs | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ErgometerIPR/ErgometerApplication/ClientApplicatie.cs b/ErgometerIPR/ErgometerApplication/ClientApplicatie.cs index d2d1e61..fb9b751 100644 --- a/ErgometerIPR/ErgometerApplication/ClientApplicatie.cs +++ b/ErgometerIPR/ErgometerApplication/ClientApplicatie.cs @@ -31,7 +31,7 @@ namespace ErgometerApplication private void updateBeep(object sender, EventArgs e) { - MainClient.RPMBeatAudio(); + Console.Beep(1000,5); } private void updateTimer_Tick(object sender, EventArgs e) { @@ -103,6 +103,8 @@ namespace ErgometerApplication public void updateStepsText(string text) { steps.setText(text); + MainClient.SendNetCommand(new NetCommand(MainClient.Session, text)); + Console.Beep(1200, 500); } public void CreateNewTest(char geslacht, int leeftijd, int gewicht, int lengte) @@ -117,7 +119,7 @@ namespace ErgometerApplication MainClient.ComPort.Read(); ergotest = new ErgometerTest(gewicht, lengte, leeftijd, geslacht, this); updateTimer.Start(); - beeptimer.Start(); + } private void buttonLogOff_Click(object sender, EventArgs e) diff --git a/ErgometerIPR/ErgometerDoctorApplication/Client/ClientThread.cs b/ErgometerIPR/ErgometerDoctorApplication/Client/ClientThread.cs index 92aae43..5c013fb 100644 --- a/ErgometerIPR/ErgometerDoctorApplication/Client/ClientThread.cs +++ b/ErgometerIPR/ErgometerDoctorApplication/Client/ClientThread.cs @@ -54,6 +54,9 @@ namespace ErgometerDoctorApplication Chat.Add(chat); window.panelClientChat.Invoke(window.panelClientChat.passChatMessage, new Object[] { chat }); break; + case NetCommand.CommandType.UITLEG: + window.updateStepsText(command.UitlegText); + break; } }