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(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); } }
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); } }