Exemple #1
0
        protected override void OnClick(EventArgs e)
        {
            base.OnClick(e);

            Point clientMousePoint = PointToClient(MousePosition);

            if (_smallZoomBounds.Contains(clientMousePoint))
            {
                ZoomLevel = BirdsEyeZoomLevel.Small;
            }
            else if (_largeZoomBounds.Contains(clientMousePoint))
            {
                ZoomLevel = BirdsEyeZoomLevel.Large;
            }
        }
        protected override void OnClick(EventArgs e)
        {
            base.OnClick(e);

            Point clientMousePoint = PointToClient(MousePosition);

            if (_smallZoomBounds.Contains(clientMousePoint))
                ZoomLevel = BirdsEyeZoomLevel.Small;
            else if (_largeZoomBounds.Contains(clientMousePoint))
                ZoomLevel = BirdsEyeZoomLevel.Large;
        }