Пример #1
0
        private void buttShowMap_Click(object sender, EventArgs e)
        {
            if (this.coordinates != null && this.coordinates.geoCoordinates.Count > 0)
            {
                this.mapGoogle.setCoordinates(coordinates.geoCoordinates);

                tBarMapZoom.Value = 10;

                // show image in picturebox
                try
                {
                    this.pBoxMap.Image = mapGoogle.showMap();
                }
                catch (Exception ex)
                {
                    this.pBoxMap.Image = Properties.Resources.mapGoogleImg;
                }
            }
            else
            {
                this.pBoxMap.Image = Properties.Resources.mapGoogleImg;
            }
        }