Example #1
0
 private void newWaypointMenuItem_Click(object sender, System.EventArgs e)
 {
     DlgMakeWaypoint dlg = new DlgMakeWaypoint(m_cameraManager, m_cameraManager.toPixelLocation(m_cameraManager.Location, null));
     dlg.ShowDialog();
 }
Example #2
0
        private void linkToWptLinkLabel_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
        {
            DlgMakeWaypoint dlg = new DlgMakeWaypoint(CameraManager.This, m_photoDescr, m_wpt);
            dlg.ShowDialog();

            Waypoint wpt = dlg.m_wpt;

            if(wpt != null)
            {
                if(m_wpt != null)
                {
                    // remove the old one:
                    WaypointsCache.RemoveWaypointById(m_wpt.Id);
                    PhotoWaypoints.RemoveWaypoint(m_wpt);
                }

                // make sure the new waypoint is accounted for in the cache:
                if(PhotoWaypoints.WaypointsWithThumbs.ContainsKey(wpt.DateTime))
                {
                    PhotoWaypoints.WaypointsWithThumbs.Remove(wpt.DateTime);
                }
                PhotoWaypoints.WaypointsWithThumbs.Add(wpt.DateTime, wpt);
                PhotoWaypoints.CurrentWptIndex = PhotoWaypoints.WaypointsWithThumbs.Count - 1;

                m_wpt = wpt;
                addExifCoordsCheckBox.Enabled = (m_wpt != null);
                setTextTextBox();

                if(m_wpt != null)
                {
                    CameraManager.This.keepInView(m_wpt.Location);
                    CameraManager.This.ProcessCameraMove();
                }

                configureCloseButtons();
            }
        }
Example #3
0
 private void cm_newWaypointMenuItem_Click(object sender, System.EventArgs e)
 {
     DlgMakeWaypoint dlg = new DlgMakeWaypoint(m_cameraManager, rightClickPoint);
     dlg.ShowDialog();
 }