private void HeardIt(UdpReceiverClass u, EventArgs e) { // HELP : example how to call method // Invoke((MethodInvoker)(() => methodName())); Invoke((MethodInvoker)(Repeat)); }
// UDP Port -------------------------------------------------------------------------- public void Subscribe(UdpReceiverClass u) { // If UDP event occurs run HeardIt method u.DataReceived += HeardIt; }