From ae45d123c2ee907fd40f7db86f2aac2b21f976b6 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期四, 14 十一月 2024 17:16:21 +0800 Subject: [PATCH] 增加监测点 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs | 26 ++++++++++++++++++++++---- 1 files changed, 22 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 3f2e5c8..94fddd0 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 @@ -13,11 +13,11 @@ /// <summary> /// 姘村姏鐐瑰嚮浜嬩欢锛堝寘鍚乏閿拰鍙抽敭锛� /// </summary> - public event Action<Yw.Model.HydroParterInfo> HydroClickEvent; + public event Action<Yw.Model.HydroVisualInfo> HydroClickEvent; /// <summary> /// 姘村姏鐐瑰嚮浜嬩欢锛堜粎宸﹂敭锛� /// </summary> - public event Action<Yw.Model.HydroParterInfo> HydroMouseLeftClickEvent; + public event Action<Yw.Model.HydroVisualInfo> HydroMouseLeftClickEvent; /// <summary> /// 鍔犺浇瀹屾垚浜嬩欢 /// </summary> @@ -90,7 +90,7 @@ { return; } - var allParterList = hydroInfo.GetAllParters(); + var allParterList = hydroInfo.GetAllVisuals(); var parter = allParterList?.Find(x => x.Code == obj.ObjectId); this.HydroClickEvent.Invoke(parter); } @@ -112,7 +112,7 @@ { return; } - var allParterList = hydroInfo.GetAllParters(); + var allParterList = hydroInfo.GetAllVisuals(); var parter = allParterList?.Find(x => x.Code == obj.ObjectId); this.HydroMouseLeftClickEvent.Invoke(parter); } @@ -607,7 +607,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