From 5791e57192d644537a7e1fbb1e48a13f15bc5c07 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Tue, 14 Oct 2025 17:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86UI?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E4=BD=93=E7=B4=A0=E8=B7=AF=E5=BE=84=E6=B5=8B=E8=AF=95=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModels/SystemManagementViewModel.cs | 10 +---- src/UI/WPF/Views/SystemManagementView.xaml | 39 ++++--------------- 2 files changed, 9 insertions(+), 40 deletions(-) diff --git a/src/UI/WPF/ViewModels/SystemManagementViewModel.cs b/src/UI/WPF/ViewModels/SystemManagementViewModel.cs index 52d1e79..5dab89e 100644 --- a/src/UI/WPF/ViewModels/SystemManagementViewModel.cs +++ b/src/UI/WPF/ViewModels/SystemManagementViewModel.cs @@ -37,11 +37,6 @@ namespace NavisworksTransport.UI.WPF.ViewModels private string _navisworksVersion = "2026"; private string _memoryUsage = "0 MB"; private string _runningTime = "00:00:00"; - - // 🔧 修复:添加定时器字段以便在清理时停止 - // 性能监控相关字段 (已改为Idle事件管理) - private DateTime _lastPerformanceUpdate = DateTime.MinValue; - private DateTime _startTime; // 🔧 修复:添加释放状态标志 private bool _disposed = false; @@ -195,9 +190,6 @@ namespace NavisworksTransport.UI.WPF.ViewModels set => SetProperty(ref _navisworksVersion, value); } - - - /// /// 内存使用情况 /// @@ -892,7 +884,7 @@ namespace NavisworksTransport.UI.WPF.ViewModels double halfVoxel = voxelSizeInModelUnits / 2.0; // 起点:模型中心、最高层Z=9 - var startPoint = new Autodesk.Navisworks.Api.Point3D(-165.56 + halfVoxel, -44.27 + halfVoxel, 50.16 + halfVoxel); + var startPoint = new Autodesk.Navisworks.Api.Point3D(-200 + halfVoxel, -24.27 + halfVoxel, 42 + halfVoxel); // 终点:偏右下、低一层Z=8 var endPoint = new Autodesk.Navisworks.Api.Point3D(-116.35 + halfVoxel, 0 + halfVoxel, 45 + halfVoxel); diff --git a/src/UI/WPF/Views/SystemManagementView.xaml b/src/UI/WPF/Views/SystemManagementView.xaml index c220668..02123e7 100644 --- a/src/UI/WPF/Views/SystemManagementView.xaml +++ b/src/UI/WPF/Views/SystemManagementView.xaml @@ -205,22 +205,18 @@ NavisworksTransport 系统管理页签视图 - 采用与其他页签一致的Nav