예제 #1
0
 protected override void OnMouseWheel(MouseEventArgs e)
 {
     if (m_controller != null)
     {
         m_controller.Zoom(e.X, e.Y, e.Delta);
     }
 }
예제 #2
0
 private void perspectiveViewPictureBox_MouseWheel(object sender, MouseEventArgs e)
 {
     /* int zoom = zoomTrackBar.Value + e.Delta / 40;
      * if (zoom < zoomTrackBar.Minimum)
      *   zoom = zoomTrackBar.Minimum;
      * if (zoom > zoomTrackBar.Maximum)
      *   zoom = zoomTrackBar.Maximum;
      * zoomTrackBar.Value = zoom;*/
     if (m_windowController != null)
     {
         m_windowController.Zoom(e.X, e.Y, e.Delta);
     }
 }