상속: System.EventArgs
예제 #1
0
 public void OnDataReceived(object sender, MirrorEventReceivedArgs args)
 {
     if (args.Event.MessageId == MessageId)
     {
         Response = args.Event;
         ResetEvent.Set();
     }
 }
예제 #2
0
 public void OnDataReceived(object sender, MirrorEventReceivedArgs args)
 {
     if( args.Event.MessageId == MessageId )
     {
         Response = args.Event;
         ResetEvent.Set();
     }
 }
예제 #3
0
        protected override void HandleDataReceived(InputReport inputReport)
        {
            var report = (InputEvent)inputReport;

            // Fire generic data received event
            if (DataRecieved != null)
            {
                if (report.EventType != EventType.Unspecified)
                {
                    var args = new MirrorEventReceivedArgs(report);
                    DataRecieved(this, args);
                }
            }
            // Fire specific events
            switch (report.EventType)
            {
            case EventType.ShowTag:
                if (TagShown != null)
                {
                    TagShown(this, new TagEventArgs(report.Data));
                }
                break;

            case EventType.HideTag:
                if (TagHid != null)
                {
                    TagHid(this, new TagEventArgs(report.Data));
                }
                break;

            case EventType.OrientationDown:
                if (OrientationChanged != null)
                {
                    OrientationChanged(this, new OrientationChangedEventArgs(Orientation.Down));
                }
                break;

            case EventType.OrientationUp:
                if (OrientationChanged != null)
                {
                    OrientationChanged(this, new OrientationChangedEventArgs(Orientation.Up));
                }
                break;
            }
        }
예제 #4
0
        protected override void HandleDataReceived(InputReport inputReport)
        {
            var report = (InputEvent)inputReport;
            // Fire generic data received event
            if (DataRecieved != null)
            {

                if (report.EventType != EventType.Unspecified)
                {
                    var args = new MirrorEventReceivedArgs(report);
                    DataRecieved(this, args);
                }
            }
            // Fire specific events
            switch (report.EventType)
            {
                case EventType.ShowTag:
                    if (TagShown != null) TagShown(this, new TagEventArgs(report.Data));
                    break;
                case EventType.HideTag:
                    if (TagHid != null) TagHid(this, new TagEventArgs(report.Data));
                    break;
                case EventType.OrientationDown :
                    if( OrientationChanged != null )
                        OrientationChanged(this, new OrientationChangedEventArgs(Orientation.Down));
                    break;
                case EventType.OrientationUp :
                    if( OrientationChanged != null )
                        OrientationChanged(this, new OrientationChangedEventArgs(Orientation.Up));
                    break;
            }
        }
예제 #5
0
 void OnDataRecieved(object sender, MirrorEventReceivedArgs args)
 {
     //BeginInvoke(new SetDataToTextBox(DelegateMethod), args.Event.Buffer);
 }