From 46af162acbf917f039878db200b54112268c4911 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期四, 19 九月 2024 16:24:34 +0800
Subject: [PATCH] 主窗体修改

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs
index e02e10b..e913b65 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs
@@ -75,6 +75,8 @@
             this.ClickParterEvent?.Invoke(obj.ObjectId);
         }
 
+        #region 鏋勪欢鐨勬樉绀轰笌闅愯棌
+
         /// <summary>
         /// 鏄剧ず鏋勪欢
         /// </summary>
@@ -104,6 +106,10 @@
             await this.bimfaceInterop3dContainer1.ShowAllComponents();
         }
 
+        #endregion
+
+        #region 鏋勪欢鐨勫崐閫忔槑涓庡彇娑�
+
         /// <summary>
         /// 鍗婇�忔槑鏋勪欢
         /// </summary>
@@ -124,5 +130,50 @@
             await this.bimfaceInterop3dContainer1.OpaqueComponents(elementIds);
         }
 
+        #endregion
+
+        #region 鏋勪欢鐨勯�変腑涓庡彇娑�
+
+        /// <summary>
+        /// 璁剧疆閫夋嫨鐨勬瀯浠�
+        /// </summary>
+        /// <returns></returns>
+        public async Task SetSelectedComponents(List<string> elements)
+        {
+            await this.bimfaceInterop3dContainer1.SetSelectedComponents(elements);
+        }
+
+        /// <summary>
+        /// 澧炲姞閫夋嫨鐨勬瀯浠�
+        /// </summary>
+        /// <param name="elements"></param>
+        /// <returns></returns>
+        public async Task AddSelectedComponents(List<string> elements)
+        {
+            await this.bimfaceInterop3dContainer1.AddSelectedComponents(elements);
+        }
+
+        /// <summary>
+        /// 绉婚櫎閫夋嫨鐨勬瀯浠�
+        /// </summary>
+        /// <param name="elements"></param>
+        /// <returns></returns>
+        public async Task RemoveSelectedComponents(List<string> elements)
+        {
+            await this.bimfaceInterop3dContainer1.RemoveSelectedComponents(elements);
+        }
+
+        /// <summary>
+        /// 娓呴櫎閫夋嫨鐨勬瀯浠�
+        /// </summary>
+        /// <param name="elements"></param>
+        /// <returns></returns>
+        public async Task ClearSelectedComponents()
+        {
+            await this.bimfaceInterop3dContainer1.ClearSelectedComponents();
+        }
+
+        #endregion
+
     }
 }

--
Gitblit v1.9.3