Doktor receives and update help text

This commit is contained in:
Janco Kock
2015-11-02 13:00:21 +01:00
parent fe1c7c28b8
commit 1160cbca65
2 changed files with 7 additions and 2 deletions
@@ -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)
@@ -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;
}
}