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); }
private void AccelerometerOnReadingChanged(AccelerometerSensor sender, AccelerometerReadingChangedEventArgs args) { LatestReading = args.Reading.AsVector3(); EventExtensions.Invoke <Vector3>(readingAvailable, sender, LatestReading); }
/// <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); }