diff --git a/XP.Hardware.Detector/bin/Debug/net8.0-windows7.0/XP.Hardware.Detector.deps.json b/XP.Hardware.Detector/bin/Debug/net8.0-windows7.0/XP.Hardware.Detector.deps.json index 3f740dc..54eff8d 100644 --- a/XP.Hardware.Detector/bin/Debug/net8.0-windows7.0/XP.Hardware.Detector.deps.json +++ b/XP.Hardware.Detector/bin/Debug/net8.0-windows7.0/XP.Hardware.Detector.deps.json @@ -1878,7 +1878,10 @@ "Telerik.UI.for.Wpf.NetCore.Xaml": "2024.1.408" }, "runtime": { - "XP.Common.dll": {} + "XP.Common.dll": { + "assemblyVersion": "1.4.16.1", + "fileVersion": "1.4.16.1" + } }, "resources": { "en-US/XP.Common.resources.dll": { diff --git a/XP.ImageProcessing.RoiControl/Controls/MeasureEventArgs.cs b/XP.ImageProcessing.RoiControl/Controls/MeasureEventArgs.cs new file mode 100644 index 0000000..7278450 --- /dev/null +++ b/XP.ImageProcessing.RoiControl/Controls/MeasureEventArgs.cs @@ -0,0 +1,31 @@ +using System.Windows; + +namespace XP.ImageProcessing.RoiControl.Controls +{ + /// 测量完成事件参数 + public class MeasureCompletedEventArgs : RoutedEventArgs + { + public Point P1 { get; } + public Point P2 { get; } + public double Distance { get; } + public int TotalCount { get; } + public string MeasureType { get; set; } + + public MeasureCompletedEventArgs(RoutedEvent routedEvent, Point p1, Point p2, double distance, int totalCount) + : base(routedEvent) + { + P1 = p1; P2 = p2; Distance = distance; TotalCount = totalCount; + } + } + + /// 测量状态变化事件参数 + public class MeasureStatusEventArgs : RoutedEventArgs + { + public string Message { get; } + + public MeasureStatusEventArgs(RoutedEvent routedEvent, string message) : base(routedEvent) + { + Message = message; + } + } +} diff --git a/XP.ImageProcessing.RoiControl/Controls/PolygonRoiCanvas.xaml b/XP.ImageProcessing.RoiControl/Controls/PolygonRoiCanvas.xaml index 409d5d4..be035cd 100644 --- a/XP.ImageProcessing.RoiControl/Controls/PolygonRoiCanvas.xaml +++ b/XP.ImageProcessing.RoiControl/Controls/PolygonRoiCanvas.xaml @@ -17,35 +17,20 @@ - - - - - - - - -