From f816cf4b8b158bfb6bd0b85ea78739b6e98e2768 Mon Sep 17 00:00:00 2001 From: "zhengxuan.zhang" Date: Thu, 23 Apr 2026 16:28:53 +0800 Subject: [PATCH] =?UTF-8?q?XP=20=E6=A8=A1=E5=9D=97=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E7=BA=BF=20(*.xpm)|*.xpm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Pipeline/PipelinePersistenceService.cs | 4 ++-- .../ViewModels/Cnc/CncInspectionModulePipelineViewModel.cs | 7 +++++-- .../ViewModels/ImageProcessing/PipelineEditorViewModel.cs | 7 +++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/XplorePlane/Services/Pipeline/PipelinePersistenceService.cs b/XplorePlane/Services/Pipeline/PipelinePersistenceService.cs index 22ac8ce..5ffaa18 100644 --- a/XplorePlane/Services/Pipeline/PipelinePersistenceService.cs +++ b/XplorePlane/Services/Pipeline/PipelinePersistenceService.cs @@ -74,7 +74,7 @@ namespace XplorePlane.Services if (!Directory.Exists(directory)) return Array.Empty(); - var files = Directory.GetFiles(directory, "*.imw"); + var files = Directory.GetFiles(directory, "*.xpm"); var results = new List(); foreach (var file in files) @@ -108,4 +108,4 @@ namespace XplorePlane.Services throw new UnauthorizedAccessException($"不允许路径遍历:{directory}"); } } -} \ No newline at end of file +} diff --git a/XplorePlane/ViewModels/Cnc/CncInspectionModulePipelineViewModel.cs b/XplorePlane/ViewModels/Cnc/CncInspectionModulePipelineViewModel.cs index af75a44..879bbb4 100644 --- a/XplorePlane/ViewModels/Cnc/CncInspectionModulePipelineViewModel.cs +++ b/XplorePlane/ViewModels/Cnc/CncInspectionModulePipelineViewModel.cs @@ -252,7 +252,9 @@ namespace XplorePlane.ViewModels.Cnc var dialog = new SaveFileDialog { - Filter = "图像处理流水线 (*.imw)|*.imw", + Filter = "XP 模块流水线 (*.xpm)|*.xpm", + DefaultExt = ".xpm", + AddExtension = true, FileName = GetActivePipelineName() }; @@ -272,7 +274,8 @@ namespace XplorePlane.ViewModels.Cnc var dialog = new OpenFileDialog { - Filter = "图像处理流水线 (*.imw)|*.imw" + Filter = "XP 模块流水线 (*.xpm)|*.xpm", + DefaultExt = ".xpm" }; if (dialog.ShowDialog() != true) diff --git a/XplorePlane/ViewModels/ImageProcessing/PipelineEditorViewModel.cs b/XplorePlane/ViewModels/ImageProcessing/PipelineEditorViewModel.cs index 9730488..f43cd33 100644 --- a/XplorePlane/ViewModels/ImageProcessing/PipelineEditorViewModel.cs +++ b/XplorePlane/ViewModels/ImageProcessing/PipelineEditorViewModel.cs @@ -511,7 +511,9 @@ namespace XplorePlane.ViewModels var dialog = new SaveFileDialog { - Filter = "图像处理流水线 (*.imw)|*.imw", + Filter = "XP 模块流水线 (*.xpm)|*.xpm", + DefaultExt = ".xpm", + AddExtension = true, FileName = PipelineName, InitialDirectory = GetPipelineDirectory() }; @@ -560,7 +562,8 @@ namespace XplorePlane.ViewModels { var dialog = new OpenFileDialog { - Filter = "图像处理流水线 (*.imw)|*.imw", + Filter = "XP 模块流水线 (*.xpm)|*.xpm", + DefaultExt = ".xpm", InitialDirectory = GetPipelineDirectory() };