Beispiel #1
0
        /// <summary>
        /// Aborts this command.
        /// </summary>
        /// <returns>True (always).</returns>
        protected bool AbortCommand()
        {
            // If this command was invoked by an update command, get
            // the update to clean up. Otherwise tell the controller.

            if (m_UpdCmd != null)
            {
                m_UpdCmd.AbortCommand(this);
            }
            else
            {
                this.Controller.AbortCommand(this);
            }

            // Ensure that any reserved IDs have been released
            IdManager idMan = CadastralMapModel.Current.IdManager;

            if (idMan != null)
            {
                idMan.FreeAllReservedIds();
            }

            return(true);
        }