public RH_BIKE_GUI(IBike b) { _controller = new RH_Controller(b); _controller.UpdatedList += updateGUI; _writeToFile = false; InitializeComponent(); updateGraph(); }
public RH_Controller(IBike b, bool sendToServer = false) { _lastSuccesfullRead = DateTime.Now; //bike = new Classes.COM_Bike("COM3"); //bike = new Classes.STUB_Bike(); _bike = b; if(sendToServer) UpdatedList += SendToServer; InitializeBackgroundWorker(); _bw.RunWorkerAsync(); }
public RH_BIKE_GUI(IBike b, string path) { _controller = new RH_Controller(b); _controller.UpdatedList += updateGUI; _writeToFile = true; InitializeComponent(); writeRealTime(path); updateGraph(); }