예제 #1
0
파일: Maps.cs 프로젝트: moisesiq/aupaga
        private void Maps_Shown(object sender, EventArgs e)
        {
            MapPoint point;

            latlong = "";
            if (this.bEsDireccion)
            {
                var locationservice = new GoogleLocationService();
                point = locationservice.GetLatLongFromAddress(this.sDireccion);
                if (point == null)
                {
                    point = locationservice.GetLatLongFromAddress("Ciudad Guzman");
                }
                latlong = point.Latitude + "," + point.Longitude;
            }
            else
            {
                latlong = this.sDireccion;
            }
            string uri = (@"file:///" + UtilLocal.RutaRecursos("maps.html").Replace("\\", "/"));

            wkbMapa.Navigate(uri);
            this.Cargando(true);
        }
예제 #2
0
 public static string RutaRecursos()
 {
     return(UtilLocal.RutaRecursos(""));
 }