Exemplo n.º 1
0
        private void NetworkControl_MouseWheel(object sender, MouseWheelEventArgs e)
        {
            const double ZoomPower = 1.002;

            Point  screen = e.GetPosition(NetworkControl);
            double zoom   = Math.Pow(ZoomPower, e.Delta);

            NetworkControl.DoZoom(screen, zoom);
        }