Пример #1
0
        protected void OnRequestSend(string IP, Modbus.ModbusDataStruct Received)
        {
            OnRequestSendHandler handler = EventRequestSend;
            RequestReceivedData  e       = new RequestReceivedData(IP, Received);

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
 public void ConnectToEvent(OnRequestSendHandler Handler)
 {
     this.EventRequestSend += Handler;
 }