From 6a96befac4867bacffeeeb524fdcee64a3378b8b Mon Sep 17 00:00:00 2001 From: "zhengxuan.zhang" Date: Wed, 22 Apr 2026 01:59:33 +0800 Subject: [PATCH] =?UTF-8?q?CNC=E6=A0=91=E5=BD=A2=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E7=9A=84=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModels/Cnc/CncNodeViewModel.cs | 10 + XplorePlane/Views/Cnc/CncPageView.xaml | 212 +++++++++++------- 2 files changed, 136 insertions(+), 86 deletions(-) diff --git a/XplorePlane/ViewModels/Cnc/CncNodeViewModel.cs b/XplorePlane/ViewModels/Cnc/CncNodeViewModel.cs index 5b7516a..6e00950 100644 --- a/XplorePlane/ViewModels/Cnc/CncNodeViewModel.cs +++ b/XplorePlane/ViewModels/Cnc/CncNodeViewModel.cs @@ -64,7 +64,15 @@ namespace XplorePlane.ViewModels.Cnc public bool IsPauseDialog => _model is PauseDialogNode; public bool IsWaitDelay => _model is WaitDelayNode; public bool IsCompleteProgram => _model is CompleteProgramNode; + public bool IsPositionChild => _model is InspectionModuleNode or InspectionMarkerNode; public bool IsMotionSnapshotNode => _model is ReferencePointNode or SaveNodeNode or SaveNodeWithImageNode or SavePositionNode; + public string RelationTag => _model switch + { + SavePositionNode => "位置", + InspectionModuleNode => "检测模块", + InspectionMarkerNode => "检测标记", + _ => string.Empty + }; public double XM { @@ -504,7 +512,9 @@ namespace XplorePlane.ViewModels.Cnc RaisePropertyChanged(nameof(IsPauseDialog)); RaisePropertyChanged(nameof(IsWaitDelay)); RaisePropertyChanged(nameof(IsCompleteProgram)); + RaisePropertyChanged(nameof(IsPositionChild)); RaisePropertyChanged(nameof(IsMotionSnapshotNode)); + RaisePropertyChanged(nameof(RelationTag)); RaisePropertyChanged(nameof(XM)); RaisePropertyChanged(nameof(YM)); RaisePropertyChanged(nameof(ZT)); diff --git a/XplorePlane/Views/Cnc/CncPageView.xaml b/XplorePlane/Views/Cnc/CncPageView.xaml index 1a31aa7..975b87d 100644 --- a/XplorePlane/Views/Cnc/CncPageView.xaml +++ b/XplorePlane/Views/Cnc/CncPageView.xaml @@ -21,6 +21,10 @@ + + + + Microsoft YaHei UI