void OnReadingChanged(Sensor sender, PositionChangedEventArgs args) { var handler = changed; var coordinate = args.Position != null ? args.Position.Coordinate : null; if (coordinate != null) { if (handler != null) { var value = ConvertToPosition(coordinate); var e = new GpsEventArgs(value); handler.Invoke(this, e); } position = coordinate; } }