Example #1
0
 private void HandleUnrelatedViewBtn(object sender, CellButtonClickEventArgs e)
 {
     int columnPhotoId = 0;
     DataTable table = m_unrelatedDS.Tables[0];
     int row = e.Row;
     int photoId = (int)unrelatedDataGrid[row, columnPhotoId];
     PhotoDescr pd = PhotoWaypoints.getUnrelatedById(photoId);
     if(pd != null)
     {
         DlgPhotoFullSize.BringFormUp(pd, null);
     }
 }
Example #2
0
 private void HandleTrackpointsViewBtn(object sender, CellButtonClickEventArgs e)
 {
     int column = 0;
     DataTable table = m_trackpointsDS.Tables[0];
     int row = e.Row;
     int wptId = (int)trackpointsDataGrid[row, column];
     Waypoint wpt = PhotoWaypoints.getWaypointById(wptId);
     if(wpt != null)
     {
         DlgPhotoFullSize.BringFormUp(null, wpt);
         GeoCoord loc = new GeoCoord(wpt.Location.X, wpt.Location.Y, PictureManager.This.CameraManager.Elev);
         PictureManager.This.CameraManager.MarkLocation(loc, 0);
         PhotoWaypoints.SetCurrentWaypoint(wpt);
         if(m_keepInView)
         {
             PictureManager.This.CameraManager.keepInView(wpt.Location);
         }
     }
 }