public BikeSimulator(Console console) : base(console) { this.console = console; data = console.data; count = 0; BikeThread = new Thread(Update); FormAstrand = new Astrand(); FormAstrand.Closed += (s, args) => FormAstrand.Close(); FormAstrand.Show(); }
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>(); }