From c390474980cea47189c1fcc962315b9867c9e2ce Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期日, 17 十一月 2024 16:03:18 +0800
Subject: [PATCH] 颜色分级梳理

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 54 insertions(+), 4 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs
index 29225f6..b1d455f 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs
@@ -373,11 +373,19 @@
         /// </summary>
         public async Task OverrideComponentsColor(List<string> elementIds, string color, double transparency)
         {
-            if (_bimfaceInteropContainer == null)
+            await _bimfaceInteropContainer?.OverrideComponentsColor(elementIds, color, transparency);
+        }
+
+        /// <summary>
+        /// 璁剧疆寮鸿皟鏋勪欢
+        /// </summary>
+        public async Task OverrideComponentsColor(string elementId, string color, double transparency)
+        {
+            if (string.IsNullOrEmpty(elementId))
             {
                 return;
             }
-            await _bimfaceInteropContainer.OverrideComponentsColor(elementIds, color, transparency);
+            await _bimfaceInteropContainer.OverrideComponentsColor(new List<string>() { elementId }, color, transparency);
         }
 
         /// <summary>
@@ -385,11 +393,19 @@
         /// </summary>
         public async Task RestoreComponentsColor(List<string> elementIds)
         {
-            if (_bimfaceInteropContainer == null)
+            await _bimfaceInteropContainer?.RestoreComponentsColor(elementIds);
+        }
+
+        /// <summary>
+        /// 鎭㈠鏋勪欢棰滆壊
+        /// </summary>
+        public async Task RestoreComponentsColor(string elementId)
+        {
+            if (string.IsNullOrEmpty(elementId))
             {
                 return;
             }
-            await _bimfaceInteropContainer.RestoreComponentsColor(elementIds);
+            await _bimfaceInteropContainer?.RestoreComponentsColor(new List<string>() { elementId });
         }
 
         #endregion
@@ -473,6 +489,22 @@
         public async Task SetLogicMarkLeadLabels(List<LogicMarkLeadLabel> obj)
         {
             await _bimfaceInteropContainer?.SetLogicMarkLeadLabels(obj);
+        }
+
+        /// <summary>
+        /// 鏇存柊涓氬姟鏍囨敞寮曠嚎鏍囩
+        /// </summary>
+        public async Task UpdateLogicMarkLeadLabel(LogicMarkLeadLabel obj)
+        {
+            await _bimfaceInteropContainer?.UpdateLogicMarkLeadLabel(obj);
+        }
+
+        /// <summary>
+        /// 鏇存柊涓氬姟鏍囨敞寮曠嚎鏍囩
+        /// </summary>
+        public async Task UpdateLogicMarkLeadLabels(List<LogicMarkLeadLabel> obj)
+        {
+            await _bimfaceInteropContainer?.UpdateLogicMarkLeadLabels(obj);
         }
 
         /// <summary>
@@ -607,7 +639,25 @@
 
         #endregion
 
+        #region 涓氬姟鐩戞祴鐐�
 
+        /// <summary>
+        /// 璁剧疆涓氬姟鐩戞祴鐐�
+        /// </summary>
+        public async Task SetLogicMonitors(List<LogicMonitor> obj)
+        {
+            await _bimfaceInteropContainer?.SetLogicMonitors(obj);
+        }
+
+        /// <summary>
+        /// 娓呴櫎涓氬姟鐩戞祴鐐�
+        /// </summary>
+        public async Task ClearLogicMonitors()
+        {
+            await _bimfaceInteropContainer?.ClearLogicMonitors();
+        }
+
+        #endregion
 
     }
 }

--
Gitblit v1.9.3