protected void OnRequestSend(string IP, Modbus.ModbusDataStruct Received) { OnRequestSendHandler handler = EventRequestSend; RequestReceivedData e = new RequestReceivedData(IP, Received); if (handler != null) { handler(this, e); } }
public void ConnectToEvent(OnRequestSendHandler Handler) { this.EventRequestSend += Handler; }