示例#1
0
 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>();
 }
示例#2
0
        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;
        }
示例#3
0
            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;
            }
示例#4
0
 public void Disconnect(IUT60EDataSender data_sender)
 {
     data_sender.DataReady -= this.OnDataReady;
 }
示例#5
0
 public void Connect(IUT60EDataSender data_sender)
 {
     data_sender.DataReady += this.OnDataReady;
 }