/// <summary> /// Performs processing upon selection of a new point (indicated by pointing at the map) /// </summary> /// <param name="point">The point that has been selected</param> /// <param name="movenext">Should the dialog automatically move on to the next point (default was true)</param> internal void OnSelectPoint(PointFeature point, bool movenext) { // Return if point is not defined. if (point == null) { return; } // Ensure that any previously selected point reverts to its normal color. SetNormalColor(); // Remember the new point. m_Point = point; m_IsPointed = true; // Set the color of the point. SetColor(); // Display the point's ID. pointTextBox.Text = PathForm.GetPointString(point); // Tell the command that's running this dialog to move on. if (movenext) { m_Parent.OnPointNext(); } }
internal AdjustmentForm(double dN, double dE, double precision, double length, PathForm parent) { InitializeComponent(); m_DeltaN = dN; m_DeltaE = dE; m_Precision = precision; m_Length = length; m_Parent = parent; }
/// <summary> /// Ensures all class data has initial values (for use by constructors) /// </summary> void Zero() { m_DialFrom = null; m_DialTo = null; m_DialPath = null; m_DialUp = null; m_From = null; m_To = null; }
/// <summary> /// Starts the main connection path sub-dialog. /// </summary> void StartPath() { Debug.Assert(m_DialFrom==null); Debug.Assert(m_DialTo==null); if (m_From==null || m_To==null) throw new Exception("Terminal points are unavailable."); m_DialPath = new PathForm(this, m_From, m_To); m_DialPath.Show(); }
/// <summary> /// Gets rid of any active sub-dialog(s). /// </summary> void KillDialogs() { if (m_DialFrom!=null) { m_DialFrom.Dispose(); m_DialFrom = null; } if (m_DialTo!=null) { m_DialTo.Dispose(); m_DialTo = null; } if (m_DialPath!=null) { m_DialPath.Dispose(); m_DialPath = null; } if (m_DialUp!=null) { m_DialUp.Dispose(); m_DialUp = null; } }