コード例 #1
0
        protected virtual void OnInvalidShortMessageReceived(InvalidShortMessageEventArgs e)
        {
            EventHandler <InvalidShortMessageEventArgs> handler = InvalidShortMessageReceived;

            if (handler != null)
            {
                context.Post(delegate(object dummy)
                {
                    handler(this, e);
                }, null);
            }
        }
コード例 #2
0
ファイル: InputDevice.Events.cs プロジェクト: Jbtyson/cis598
        protected virtual void OnInvalidShortMessageReceived(InvalidShortMessageEventArgs e)
        {
            EventHandler<InvalidShortMessageEventArgs> handler = InvalidShortMessageReceived;

            if(handler != null)
            {
                context.Post(delegate(object dummy)
                {
                    handler(this, e);
                }, null);
            }
        }
コード例 #3
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);
     }
 }
コード例 #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);
            }
        }