コード例 #1
0
 public void Invoke1Tests()
 {
     EventExtensions.Invoke <dataClass> (
         new EventHandler <EventArgs <dataClass> > (
             (object sender, EventArgs <dataClass> e) => ((dataClass)e.Value).Fired = true), this, Invoke1Value);
     Assert.IsTrue(Invoke1Value.Fired);
 }
コード例 #2
0
 private void AccelerometerOnReadingChanged(AccelerometerSensor sender, AccelerometerReadingChangedEventArgs args)
 {
     LatestReading = args.Reading.AsVector3();
     EventExtensions.Invoke <Vector3>(readingAvailable, sender, LatestReading);
 }
コード例 #3
0
 /// <summary>
 /// Gyroscope reading has changed.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The gyroscope event arguments.</param>
 private void GyroscopeReadingChanged(Gyrometer sender, GyrometerReadingChangedEventArgs args)
 {
     LatestReading = args.Reading.AsVector3();
     EventExtensions.Invoke <Vector3>(readingAvailable, this, this.LatestReading);
 }