///-------------------------------------------------------------------------
        /// <summary>
        /// Handles the click on the 'Set default range' menu item.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing
        /// the event data.</param>
        ///-------------------------------------------------------------------------
        protected void setDefaultItemClick(object sender, EventArgs e)
        {
            if (_masterPane != null)
            {
                var pane = _masterPane.FindPane(_menuClickPt) as GraphPane;
                if (pane == null)
                {
                    return;
                }

                var handler = ResetScale;
                if (handler != null)
                {
                    var args = new ExtendedZedResetScaleEventArgs();
                    handler(pane, args);
                    if (args.Handled)
                    {
                        pane.ZoomStack.Clear();
                        return;
                    }
                }
            }

            MenuClick_RestoreScale(sender, e);
        }
        ///------------------------------------------------------------------------
        /// <summary>
        /// Raises the ResetScale event.
        /// </summary>
        /// <param name="graphPane"></param>
        ///------------------------------------------------------------------------
        private void OnResetScale(GraphPane graphPane)
        {
            bool autoScale = true;
            var  handler   = ResetScale;

            if (handler != null)
            {
                ExtendedZedResetScaleEventArgs args = new ExtendedZedResetScaleEventArgs();
                handler(graphPane, args);
                autoScale = !args.Handled;
            }
            if (autoScale)
            {
                RestoreScale(graphPane);
                IsEnableHZoom = true;
                IsEnableVZoom = true;
            }
            graphPane.ZoomStack.Clear();
        }