Ch.Epyx.WindMobile.WP7.ViewModel.Converter.StationInfoToGeoCoordinateConverter.Convert C# (CSharp) Méthode

Convert() public méthode

public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
Résultat object
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value is IStationInfo && targetType == typeof(GeoCoordinate))
            {
                var station = value as IStationInfo;
                return new GeoCoordinate(station.Wgs84Latitude, station.Wgs84Longitude, station.Altitude);
            }
            throw new NotImplementedException();
        }
StationInfoToGeoCoordinateConverter