Esempio n. 1
0
 public Wingate(string name, Form1 main, Kettler_X7_Lib.Networking.Client newNetworkClient)
 {
     form = new WingateWeightAndStart(this);
     buttonPressed = false;
     networkClient = newNetworkClient;
     mainForm = main;
     bike = mainForm.getBike();
     if (bike != null) bikeConnected = true;
     patientName = name;
     timeIt();
     test("waiting");
 }
Esempio n. 2
0
 private void bike_ValuesParsed(object sender, Kettler_X7.ValuesParsedEventArgs e)
 {
     if (valueList.Count < 30 && testing)
     {
         valueList.Add(e.Value);
         Console.WriteLine("In list: " + valueList.Count.ToString());
     }
     Console.WriteLine("Index: "+index.ToString());
     //mainForm.update(sender, e);
 }