ToolMeasureObject.cs 626 B

12345678910111213141516171819202122
  1. using PaintDotNet.Annotation.Enum;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Forms;
  8. namespace PaintDotNet.Annotation.Measure
  9. {
  10. public abstract class ToolMeasureObject : ToolObject
  11. {
  12. public static new void OnMouseNotLeftDown(ISurfaceBox surfacebox, DrawObject o)
  13. {
  14. if (surfacebox.ContinuousDrawingMeasure() && o == null)
  15. {
  16. surfacebox.ActiveTool = DrawToolType.Pointer;
  17. surfacebox.SetContinuousDrawingMeasure(false);
  18. }
  19. }
  20. }
  21. }