public void OnDataReceived(object sender, MirrorEventReceivedArgs args) { if (args.Event.MessageId == MessageId) { Response = args.Event; ResetEvent.Set(); } }
public void OnDataReceived(object sender, MirrorEventReceivedArgs args) { if( args.Event.MessageId == MessageId ) { Response = args.Event; ResetEvent.Set(); } }
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; } }
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; } }
void OnDataRecieved(object sender, MirrorEventReceivedArgs args) { //BeginInvoke(new SetDataToTextBox(DelegateMethod), args.Event.Buffer); }