protected void OnTransmitEvent(object sender, MessageEventArgs e) { try { if (null != DataMessage) { DataMessage.Invoke(sender, e); } } catch { } }
public void RaiseDataMessage(string message) { DataMessage?.Invoke(this, message); }