/// <summary>
        /// Handles the corresponding event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="MapDrawFilterHelperCollectionRenameEventArgs"/> instance containing the event data.</param>
        void _filterCollection_Renamed(MapDrawFilterHelperCollection sender, MapDrawFilterHelperCollectionRenameEventArgs e)
        {
            // Update the displayed name

            FilterToolStripItem ftsi;

            if (!_tsFilters.TryGetValue(e.Filter, out ftsi))
            {
                const string errmsg = "Failed to find FilterToolStripItem for filter `{0}`.";
                if (log.IsErrorEnabled)
                {
                    log.ErrorFormat(errmsg, e.Filter);
                }
                Debug.Fail(string.Format(errmsg, e.Filter));
                return;
            }

            Debug.Assert(ftsi.Filter == e.Filter);

            ftsi.FilterNameChanged(e.FilterName);
        }
        /// <summary>
        /// Handles the corresponding event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="MapDrawFilterHelperCollectionRenameEventArgs"/> instance containing the event data.</param>
        void _filterCollection_Renamed(MapDrawFilterHelperCollection sender, MapDrawFilterHelperCollectionRenameEventArgs e)
        {
            // Update the displayed name

            FilterToolStripItem ftsi;
            if (!_tsFilters.TryGetValue(e.Filter, out ftsi))
            {
                const string errmsg = "Failed to find FilterToolStripItem for filter `{0}`.";
                if (log.IsErrorEnabled)
                    log.ErrorFormat(errmsg, e.Filter);
                Debug.Fail(string.Format(errmsg, e.Filter));
                return;
            }

            Debug.Assert(ftsi.Filter == e.Filter);

            ftsi.FilterNameChanged(e.FilterName);
        }