Esempio n. 1
0
 private void form_MouseWheel(object sender, MouseEventArgs e)
 {
     if (Control.ModifierKeys.HasFlag(Keys.Control) && Form.Mode == RegionCaptureMode.Annotation)
     {
         if (e.Delta > 0)
         {
             CurrentTool = CurrentTool.Previous <ShapeType>();
         }
         else if (e.Delta < 0)
         {
             CurrentTool = CurrentTool.Next <ShapeType>();
         }
     }
     else
     {
         if (e.Delta > 0)
         {
             Options.MagnifierPixelCount = Math.Min(Options.MagnifierPixelCount + 2, RegionCaptureOptions.MagnifierPixelCountMaximum);
         }
         else if (e.Delta < 0)
         {
             Options.MagnifierPixelCount = Math.Max(Options.MagnifierPixelCount - 2, RegionCaptureOptions.MagnifierPixelCountMinimum);
         }
     }
 }