public void GetTime(Object source, ElapsedEventArgs e)
      {
          string timeString = ExerciseConnection.secondsTommss(this.Time);

          ExerciseConnection.SendTimeBike(timeString, MachineName);
          ExerciseConnection.SendTimeDoctor(timeString, MachineName);
          this.Time--;
      }
Example #2
0
 public override void Event(Context context)
 {
     Console.WriteLine("In finished state");
     base.AllowData = false;
     ExerciseConnection.SendTimeBike("00:00", MachineName);
     ExerciseConnection.SendTimeDoctor("00:00", MachineName);
     base.ExerciseConnection.SendChangeTime("0000", base.MachineName);
     base.ExerciseConnection.SendInfoDoctor("De test is afgelopen!", base.MachineName, 1);
     base.ExerciseConnection.SendInfoBike("De test is afgelopen!", 1);
     base.ExerciseConnection.sendChangePower(25, base.MachineName);
 }