protected virtual void OnInvalidShortMessageReceived(InvalidShortMessageEventArgs e)
        {
            EventHandler <InvalidShortMessageEventArgs> handler = InvalidShortMessageReceived;

            if (handler != null)
            {
                context.Post(delegate(object dummy)
                {
                    handler(this, e);
                }, null);
            }
        }
Ejemplo n.º 2
0
        protected virtual void OnInvalidShortMessageReceived(InvalidShortMessageEventArgs e)
        {
            EventHandler<InvalidShortMessageEventArgs> handler = InvalidShortMessageReceived;

            if(handler != null)
            {
                context.Post(delegate(object dummy)
                {
                    handler(this, e);
                }, null);
            }
        }
 protected virtual void OnInvalidShortMessageReceived(InvalidShortMessageEventArgs e)
 {
     EventHandler<InvalidShortMessageEventArgs> handler = InvalidShortMessageReceived;
     if (context == null)
         context = SynchronizationContext.Current;
     if (handler != null && context != null)
     {
         context.Post(delegate(object dummy)
         {
             handler(this, e);
         }, null);
     }
 }
Ejemplo n.º 4
0
        protected virtual void OnInvalidShortMessageReceived(InvalidShortMessageEventArgs e)
        {
            EventHandler <InvalidShortMessageEventArgs> handler = InvalidShortMessageReceived;

            if (context == null)
            {
                context = SynchronizationContext.Current;
            }
            if (handler != null && context != null)
            {
                context.Post(delegate(object dummy)
                {
                    handler(this, e);
                }, null);
            }
        }