Example #1
0
 /// <summary>Raises the <see cref="Movement"/> event</summary>
 /// <param name="e">Event arguments</param>
 protected virtual void OnMovement(GpsMovementEventArgs e)
 {
     if (Movement != null)
     {
         Movement.Invoke(this, e);
     }
 }
Example #2
0
 /// <summary>Called when GPS movement information is received</summary>
 /// <param name="sender">A GPS provider</param>
 /// <param name="e">Event arguments containing movement data</param>
 private void GpsMovementEvent(GpsProvider sender, GpsMovementEventArgs e)
 {
     if (statistic != null)
     {
         statistic.ActualSpeed = e.Speed;
     }
 }
Example #3
0
 /// <summary>Raises the <see cref="Movement"/> event</summary>
 /// <param name="e">Event arguments</param>
 protected virtual void OnMovement(GpsMovementEventArgs e)
 {
     if (Movement != null) Movement.Invoke(this, e);
 }