private void OnProfileGraphClicked(GraphProfileClickedArgs e)
        {
            IPoint point = new Point()
            {
                X = e.ProfilePoint.X, Y = e.ProfilePoint.Y, SpatialReference = e.ProfilePoint.SpatialReference
            };
            IEnvelope env = new EnvelopeClass();
            var       av  = ArcMap.Document.ActivatedView;

            point.Project(av.FocusMap.SpatialReference);

            EsriTools.PanToGeometry(ArcMap.Document.ActivatedView, point);
            EsriTools.FlashGeometry(av.ScreenDisplay, new IGeometry[] { point });
        }
        private void OnProfileGraphClicked(GraphProfileClickedArgs e)
        {
            IPoint point = new Point()
            {
                X = e.ProfilePoint.X, Y = e.ProfilePoint.Y, SpatialReference = e.ProfilePoint.SpatialReference
            };
            IEnvelope env = new EnvelopeClass();
            var       av  = ArcMap.Document.ActivatedView;

            point.Project(av.FocusMap.SpatialReference);

            if (!EsriTools.IsPointOnExtent(ArcMap.Document.ActivatedView.Extent, point))
            {
                EsriTools.PanToGeometry(View.ActiveView, point);
            }

            EsriTools.FlashGeometry(point, 500, ArcMap.Application);
        }
        private void OnProfileGraphClicked(GraphProfileClickedArgs e)
        {
            IPoint point = new Point()
            {
                X = e.ProfilePoint.X, Y = e.ProfilePoint.Y, SpatialReference = e.ProfilePoint.SpatialReference
            };

            IEnvelope env = new EnvelopeClass();

            var av = ArcMap.Document.ActivatedView;

            point.Project(av.FocusMap.SpatialReference);

            env = av.Extent;
            env.CenterAt(point);
            av.Extent = env;
            av.Refresh();
            EsriTools.FlashGeometry(av.ScreenDisplay, point);
            av.Refresh();
        }