/// <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); } }
/// <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; } }
/// <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); }