protected void OnRequestReceived(string IP, int ReceivedFC) { OnRequestReceivedHandler handler = EventRequestReceived; RequestReceivedData e = new RequestReceivedData(IP, ReceivedFC); if (handler != null) { handler(this, e); } }
protected void OnRequestSend(string IP, Modbus.ModbusDataStruct Received) { OnRequestSendHandler handler = EventRequestSend; RequestReceivedData e = new RequestReceivedData(IP, Received); if (handler != null) { handler(this, e); } }