Exemplo n.º 1
0
        private void RaiseSMSReceivedEvent(string message)
        {
            //(SMSReceived as SMSReceivedDelegate)?.Invoke(message);

            SMSReceivedDelegate handler = SMSReceived as SMSReceivedDelegate;

            if (handler != null)
            {
                handler(message);
            }
        }
Exemplo n.º 2
0
        public static void OnSMSReceived(SMS message)
        {
            SMSReceivedDelegate smsDelegate = SMSReceived;

            smsDelegate?.Invoke(message);
        }