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