|
@@ -31,7 +31,6 @@ namespace ErgometerApplication
|
|
|
|
|
|
|
|
private void updateTimer_Tick(object sender, EventArgs e)
|
|
private void updateTimer_Tick(object sender, EventArgs e)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
|
|
|
|
|
if(MainClient.Doctor.Connected)
|
|
if(MainClient.Doctor.Connected)
|
|
|
{
|
|
{
|
|
@@ -49,6 +48,8 @@ namespace ErgometerApplication
|
|
|
energy.updateValue(m.Energy);
|
|
energy.updateValue(m.Energy);
|
|
|
actualpower.updateValue(m.ActualPower);
|
|
actualpower.updateValue(m.ActualPower);
|
|
|
time.updateValue(m.Seconds);
|
|
time.updateValue(m.Seconds);
|
|
|
|
|
+
|
|
|
|
|
+ ergotest.timerTick();
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
@@ -106,8 +107,9 @@ namespace ErgometerApplication
|
|
|
panelTopBar.Visible = true;
|
|
panelTopBar.Visible = true;
|
|
|
panelClientContainer.BringToFront();
|
|
panelClientContainer.BringToFront();
|
|
|
chat = panelClientChat;
|
|
chat = panelClientChat;
|
|
|
|
|
+ ergotest = new ErgometerTest(gewicht, lengte, leeftijd, geslacht);
|
|
|
updateTimer.Start();
|
|
updateTimer.Start();
|
|
|
- ergotest = new ErgometerTest()
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void buttonLogOff_Click(object sender, EventArgs e)
|
|
private void buttonLogOff_Click(object sender, EventArgs e)
|