Ejemplo n.º 1
0
        private void Button_gridbut_Click(object sender, RoutedEventArgs e)
        {
            if (sender == LaunchButton)
            {
                try
                {
                    ExploremapsShowMapTask showMap = new ExploremapsShowMapTask();

                    showMap.Location = new GeoCoordinate(Double.Parse(LatitudeBox.Text),Double.Parse(LongittudeBox.Text));
                    showMap.Zoom = (int)zoomSlider.Value;
                    showMap.Show();
                }
                catch (Exception erno)
                {
                    MessageBox.Show("Error message: " + erno.Message);
                }
            }
            else if (sender == getGeoButton)
            {
                NavigationService.Navigate(new Uri("/LocationSelectorPage.xaml?target=Location", UriKind.Relative));
            }
        }
Ejemplo n.º 2
0
        private void btnExploremapsShowMapTask_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ExploremapsShowMapTask showMap = new ExploremapsShowMapTask();

                showMap.Location = new GeoCoordinate(LatitudSevilla, LongitudSevilla);
                showMap.Zoom = zoom;
                showMap.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error message: " + ex.Message);
            }
        }