/// <summary> /// Reacts to the selection of a point feature. /// </summary> /// <param name="point">The point (if any) that has been selected.</param> internal override void OnSelectPoint(PointFeature point) { if (m_DialFrom != null) { m_DialFrom.OnSelectPoint(point, true); } else if (m_DialTo != null) { m_DialTo.OnSelectPoint(point, true); } else if (m_DialPath != null) { m_DialPath.OnSelectPoint(point); } }
/// <summary> /// Starts the to-point sub-dialog. /// </summary> void StartTo() { m_DialTo = new GetPointForm(this, "Finishing Point", Color.Cyan, true); m_DialTo.Show(); m_DialTo.OnSelectPoint(m_To, false); }
/// <summary> /// Starts the from-point sub-dialog. /// </summary> void StartFrom() { m_DialFrom = new GetPointForm(this, "Starting Point", Color.DarkBlue, false); m_DialFrom.Show(); m_DialFrom.OnSelectPoint(m_From, false); }