public ModbusUI() { InitializeComponent(); MyModbus = new ModbusCore(); MyModbus.EventMBusException += new Modbus.ModbusCore.MBusException(MyModbus_EventMBusException); }
public ModbusClientDemo() { InitializeComponent(); m_Client = new ModbusCore(); modbusLog1.SetClientToLog(m_Client); }
public void SetClientToLog(ModbusCore ClientToLog) { ClientToLog.ConnectToEvent(new ModbusCore.OnRequestReceivedHandler(OnReceiveClient)); ClientToLog.ConnectToEvent(new ModbusCore.OnRequestSendHandler(OnSendClient)); }