private void below01(DeviceRealTimeData data) { string[] displayArray = data.GetDisplayArray(); this.txt_volt.Text = displayArray[0]; this.txt_current.Text = displayArray[1]; this.txt_power.Text = displayArray[2]; }
public StationDataModel(string stationName, SerialPort serialPort, byte slaveID) { this.stationName = stationName; this.serialPort = serialPort; this.slaveID = slaveID; this.processor = new ModbusOperationProcessor(this.serialPort, this); this.realTimeData = new DeviceRealTimeData(); this.operationStatus = (serialPort == null) ? new OperationStatusData() : new OperationStatusData(stationName, serialPort.PortName); }
private void UpdateRealTimeData(DeviceRealTimeData data) { base.BeginInvoke(new myDelegate(below01), data); }