fix: remove all generic/instructional text from error dialogs

- Keep only the actual error reason, no '请先...' guidance
- Each condition shows its specific cause, exceptions pass through raw
This commit is contained in:
tian 2026-06-09 02:48:33 +08:00
parent 5be6dfdaf3
commit cd05553dd9

View File

@ -2435,7 +2435,7 @@ namespace NavisworksTransport.UI.WPF.ViewModels
{
CleanupAssemblyEndFaceSelection(clearVisuals: false);
DialogHelper.ShowStatusAndDialog(
"取面失败: 未命中有效面。",
"未命中有效面。",
"取端面失败",
"未命中有效表面。\n请在终点箱体端面上点击。",
UpdateMainStatus,
@ -2453,7 +2453,7 @@ namespace NavisworksTransport.UI.WPF.ViewModels
CleanupAssemblyEndFaceSelection(clearVisuals: false);
LogManager.Debug($"[直线装配] 取面命中 {ModelItemAnalysisHelper.GetSafeDisplayName(pickItem)}, 非终点箱体");
DialogHelper.ShowStatusAndDialog(
"取面失败: 请确认点击的是终点箱体的端面。",
"点击的是终点箱体。",
"取端面失败",
"点击的不是终点箱体。\n请确认已先选择终点箱体然后在其端面点击。",
UpdateMainStatus,
@ -2556,9 +2556,9 @@ namespace NavisworksTransport.UI.WPF.ViewModels
{
CleanupAssemblyInstallationSelection();
DialogHelper.ShowStatusAndDialog(
"选安装面失败: 尚未捕获终点箱体。",
"尚未捕获终点箱体。",
"选安装面失败",
"尚未完成终点箱体设置。\n请先点击「捕获终点箱体」,然后「取端面」,再「选安装面」。",
"尚未捕获终点箱体。",
UpdateMainStatus,
System.Windows.MessageBoxImage.Warning);
return;
@ -2568,9 +2568,9 @@ namespace NavisworksTransport.UI.WPF.ViewModels
{
CleanupAssemblyInstallationSelection();
DialogHelper.ShowStatusAndDialog(
"取面失败: 未命中有效表面。",
"未命中有效表面。",
"选安装面失败",
"未命中有效表面。\n请在终点箱体的平整表面上点击。",
"未命中有效表面。",
UpdateMainStatus,
System.Windows.MessageBoxImage.Warning);
return;