Esempio n. 1
0
 public void ChangeBike(string comPort)
 {
     if (threadRunning)
     {
         bike.Close();
     }
     bike = new BikeKettler(comPort);
     if (!threadRunning)
     {
         thread = new Thread(StartBikeSession);
         thread.Start();
     }
 }