Esempio n. 1
0
        void Datagrid1_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            double x = (double)((System.Data.DataRowView)Datagrid1.SelectedItem)[11];
            double y = (double)((System.Data.DataRowView)Datagrid1.SelectedItem)[12];

            var utm = new GPS.UTM(x, y, 32);

            try
            {
                String imageURI = GetImagery(utm.Latitude.GetAbsoluteDecimalCoordinate() + ", " + utm.Longitude.GetDecimalCoordinate());
                image1.Source = new BitmapImage(new Uri(imageURI));
            }
            catch (Exception ee)
            { }
        }
Esempio n. 2
0
    void Datagrid1_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {
      
      double x = (double)((System.Data.DataRowView)Datagrid1.SelectedItem)[11];
      double y = (double)((System.Data.DataRowView)Datagrid1.SelectedItem)[12];

      var utm = new GPS.UTM(x,y,32);

      try
      {
        String imageURI = GetImagery(utm.Latitude.GetAbsoluteDecimalCoordinate() + ", " + utm.Longitude.GetDecimalCoordinate());
        image1.Source = new BitmapImage(new Uri(imageURI));
      }
      catch (Exception ee)
      { }
    }