Inheritance: System.EventArgs
Example #1
0
 public void OnDataReceived(object sender, MirrorEventReceivedArgs args)
 {
     if (args.Event.MessageId == MessageId)
     {
         Response = args.Event;
         ResetEvent.Set();
     }
 }
Example #2
0
 public void OnDataReceived(object sender, MirrorEventReceivedArgs args)
 {
     if( args.Event.MessageId == MessageId )
     {
         Response = args.Event;
         ResetEvent.Set();
     }
 }
Example #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;
            }
        }
Example #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;
            }
        }
Example #5
0
 void OnDataRecieved(object sender, MirrorEventReceivedArgs args)
 {
     //BeginInvoke(new SetDataToTextBox(DelegateMethod), args.Event.Buffer);
 }