Example #1
0
 public Bike(string port, Console console, Client client) : base(console)
 {
     this.client        = client;
     start              = false;
     serialCommunicator = new SerialCommunicator(port);
     BikeThread         = new Thread(InitBike);
 }
Example #2
0
 public Bike(string port, User user, Console console, ref Client client) : base(console)
 {
     this.client        = client;
     this.user          = user;
     start              = false;
     serialCommunicator = new SerialCommunicator(port);
     BikeThread         = new Thread(InitBike);
     ChangesThread      = new Thread(changes);
     //Astrand Form1 = new Astrand();
     FormAstrand         = new Astrand();
     FormAstrand.Closed += (s, args) => FormAstrand.Close();
     FormAstrand.Show();
     heartrates = new List <int>();
 }