public UT60EDataController(UT60ESerialPortSettings port_settings, IUT60EDataSender package_sender) { this.id = port_settings.name; this.unit = port_settings.log_unit; package_sender.DataReady += OnDataReady; data_packages = new List <IUT60EData>(); }
public void Connect(IUT60EDataSender data_sender) { UT60EDataController data_controller = (data_sender as UT60EDataController); textBoxPort.Text = data_controller.id; textBoxUnit.Text = ((log_units)(data_controller.unit)).ToString(); data_sender.DataReady += OnDataReady; }
internal LogLimiter(IUT60EDataSender logger, UT60ELogSettings log_settings) { this.log_limit = log_settings.log_limit; switch (log_settings.log_limit) { case 0: this.limit = time_limit; break; default: this.limit = number_limit; break; } logger.DataReady += limit; }
public void Disconnect(IUT60EDataSender data_sender) { data_sender.DataReady -= this.OnDataReady; }
public void Connect(IUT60EDataSender data_sender) { data_sender.DataReady += this.OnDataReady; }