Example #1
0
 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
 {
     if (typeof(string).Equals(destinationType))
     {
         GoogleMapsLatLng pfx = value as GoogleMapsLatLng;
         if (pfx != null)
         {
             return(string.Format(CultureInfo.InvariantCulture, "{0}, {1}", pfx.lat(), pfx.lng()));
         }
     }
     return(base.ConvertTo(context, culture, value, destinationType));
 }
 public GoogleMapsMarker(HtmlGoogleMap owner)
 {
     _owner     = owner;
     Location   = new GoogleMapsLatLng();
     markerSize = Size.Empty;
 }