From 109d1a936cb77ff259ad4b29333afd22dc32f64a Mon Sep 17 00:00:00 2001
From: cloudflight <cloudflight@126.com>
Date: 星期一, 05 八月 2024 08:48:32 +0800
Subject: [PATCH] [重构] 1、Map重构,变量命名,注释,相关操作以事件传出等 2、计算返回结果格式调整,命名空间 3、部分结构类型回调

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrPage.cs |   32 +++++++++++++++++++++++++++++---
 1 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrPage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrPage.cs
index 4d18c6a..8b8c8c5 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrPage.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrPage.cs
@@ -52,10 +52,10 @@
             }
             var guid = new PageGuid()
             {
-                Modular = "Bimface",
+                Modular =Yw.WinFrmUI.PageModular.Bimface,
                 MoudingType = Yw.WinFrmUI.Page.eMoudingType.Tab,
-                Function = "BimfaceView",
-                TagName = vm.ID.ToString()
+                Function = Yw.WinFrmUI.PageFunction.ViewBimface3d,
+                TagName = $"{vm.ID}"
             };
 
             if (!IsExistPage(guid, true))
@@ -97,5 +97,31 @@
         {
             this.RefreshData();
         }
+
+        #region 褰撳墠
+
+        //鑾峰彇褰撳墠
+        private XhsProjectMgrViewModel GetCurrentViewModel()
+        {
+            if (_allProjectList == null)
+            {
+                Yw.WinFrmUI.MessageBoxHelper.ShowError("鏁版嵁鍒濆鍖栭敊璇紒");
+                return null;
+            }
+            if (_allProjectList == null)
+            {
+                Yw.WinFrmUI.MessageBoxHelper.ShowInfo("鏃犳暟鎹�");
+                return null;
+            }
+            var vm = this.treeList1.GetCurrentViewModel(_allProjectList);
+            if (vm == null)
+            {
+                Yw.WinFrmUI.MessageBoxHelper.ShowInfo("璇烽�夋嫨鏁版嵁琛�");
+                return null;
+            }
+            return vm;
+        }
+
+        #endregion
     }
 }

--
Gitblit v1.9.3