Exemple #1
0
 private void form_MouseWheel(object sender, MouseEventArgs e)
 {
     if (Control.ModifierKeys.HasFlag(Keys.Control) && form.Mode == RegionCaptureMode.Annotation)
     {
         if (e.Delta > 0)
         {
             CurrentShapeType = CurrentShapeType.Previous <ShapeType>();
         }
         else if (e.Delta < 0)
         {
             CurrentShapeType = CurrentShapeType.Next <ShapeType>();
         }
     }
     else
     {
         if (e.Delta > 0)
         {
             Config.MagnifierPixelCount = Math.Min(Config.MagnifierPixelCount + 2, RegionCaptureOptions.MagnifierPixelCountMaximum);
         }
         else if (e.Delta < 0)
         {
             Config.MagnifierPixelCount = Math.Max(Config.MagnifierPixelCount - 2, RegionCaptureOptions.MagnifierPixelCountMinimum);
         }
     }
 }
Exemple #2
0
 private void form_MouseWheel(object sender, MouseEventArgs e)
 {
     if (Control.ModifierKeys.HasFlag(Keys.Control))
     {
         if (e.Delta > 0)
         {
             if (Config.MagnifierPixelCount < 41)
             {
                 Config.MagnifierPixelCount += 2;
             }
         }
         else if (e.Delta < 0)
         {
             if (Config.MagnifierPixelCount > 2)
             {
                 Config.MagnifierPixelCount -= 2;
             }
         }
     }
     else
     {
         if (e.Delta > 0)
         {
             CurrentShapeType = CurrentShapeType.Previous <ShapeType>();
         }
         else if (e.Delta < 0)
         {
             CurrentShapeType = CurrentShapeType.Next <ShapeType>();
         }
     }
 }