Esempio n. 1
0
        /// <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)
        {
            // In some situations (e.g. Direction/Distance intersection), the
            // act of finishing a command may mean that the editing controller
            // will be asked to select something (e.g. the intersection point).
            // In that case, we don't want to do anything when the select point
            // message comes through.

            if (m_IsFinishing)
            {
                return;
            }

            if (m_Cmd != null)
            {
                // Can't pick something created by a dependent op.
                if (IsDependent(point))
                {
                    DependencyMessage();
                }
                else
                {
                    m_Cmd.OnSelectPoint(point);
                }
            }
            else if (point != null)
            {
                Run(point);
            }
        }