From 979fa511e23ad4cb8d7e25b813aade4aaec45535 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期六, 23 十一月 2024 00:12:34 +0800 Subject: [PATCH] 核心界面整理 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs | 58 +++++++++++++++++++++------------------------------------- 1 files changed, 21 insertions(+), 37 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 30b5d75..bc38493 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 @@ -2,7 +2,7 @@ namespace HStation.WinFrmUI { - public partial class XhsProjectSimulationBimfaceCtrl : DevExpress.XtraEditors.XtraUserControl + public partial class XhsProjectSimulationBimfaceCtrl : DevExpress.XtraEditors.XtraUserControl, ISimulationFlowEffectView, ISimulationVisualVisibleView, ISimulationMonitorMarkerView, ISimulationCalcuResultLabelView, ISimulationMarkView, ISimulationGradingView { public XhsProjectSimulationBimfaceCtrl() { @@ -178,30 +178,22 @@ #endregion - #region 鏋勪欢鐨勫崐閫忔槑涓庡彇娑� + #region 鍗婇�忔槑 /// <summary> - /// 鍗婇�忔槑鏋勪欢 + /// 鍗婇�忔槑 /// </summary> - public async Task TranslucentComponents(List<string> elementIds) + public async Task TranslucentComponents(List<string> codes) { - if (_bimfaceInteropContainer == null) - { - return; - } - await _bimfaceInteropContainer.TranslucentComponents(elementIds); + await _bimfaceInteropContainer?.TranslucentComponents(codes); } /// <summary> - /// 鍙栨秷鏋勪欢鍗婇�忔槑 + /// 鍙栨秷鍗婇�忔槑 /// </summary> - public async Task OpaqueComponents(List<string> elementIds) + public async Task OpaqueComponents(List<string> codes) { - if (_bimfaceInteropContainer == null) - { - return; - } - await _bimfaceInteropContainer.OpaqueComponents(elementIds); + await _bimfaceInteropContainer?.OpaqueComponents(codes); } #endregion @@ -265,18 +257,14 @@ #endregion - #region 缂╂斁 + #region 缂╂斁涓庨�夋嫨 /// <summary> /// 缂╂斁鑷虫瀯浠� /// </summary> - public async Task ZoomToComponent(string elementId) + public async Task ZoomToComponent(string code) { - if (_bimfaceInteropContainer == null) - { - return; - } - await _bimfaceInteropContainer.ZoomToComponent(elementId); + await _bimfaceInteropContainer?.ZoomToComponent(code); } /// <summary> @@ -284,31 +272,27 @@ /// </summary> public async Task ZoomToSelectedComponents() { - if (_bimfaceInteropContainer == null) - { - return; - } - await _bimfaceInteropContainer.ZoomToSelectedComponents(); + await _bimfaceInteropContainer?.ZoomToSelectedComponents(); } /// <summary> /// 缂╂斁鑷抽�夋嫨鏋勪欢 /// </summary> - public async Task ZoomAndSelectComponent(string elementId) + public async Task ZoomAndSelectComponent(string code) { - if (string.IsNullOrEmpty(elementId)) + if (string.IsNullOrEmpty(code)) { return; } - await _bimfaceInteropContainer.ZoomAndSelectComponents(new List<string>() { elementId }); + await _bimfaceInteropContainer?.ZoomAndSelectComponents(new List<string>() { code }); } /// <summary> /// 缂╂斁鑷抽�夋嫨鏋勪欢 /// </summary> - public async Task ZoomAndSelectComponents(List<string> elementIds) + public async Task ZoomAndSelectComponents(List<string> codes) { - await _bimfaceInteropContainer.ZoomAndSelectComponents(elementIds); + await _bimfaceInteropContainer?.ZoomAndSelectComponents(codes); } #endregion @@ -416,7 +400,7 @@ #endregion - #region 涓氬姟鏍囨敞寮曠嚎鏍囩 + #region 妯″瀷鏍囨敞 /// <summary> /// 璁剧疆涓氬姟鏍囨敞寮曠嚎鏍囩 @@ -452,7 +436,7 @@ #endregion - #region 涓氬姟姘存祦鍔ㄧ敾 + #region 姘存祦鍔ㄧ敾 /// <summary> /// 鍔犺浇姘存祦鍔ㄧ敾 @@ -574,12 +558,12 @@ #endregion - #region 涓氬姟鐩戞祴鐐� + #region 鐩戞祴鐐规爣璁� /// <summary> /// 璁剧疆涓氬姟鐩戞祴鐐� /// </summary> - public async Task SetLogicMonitors(List<LogicMonitor> obj) + public async Task SetLogicMonitors(List<LogicMonitorMarker> obj) { await _bimfaceInteropContainer?.SetLogicMonitors(obj); } -- Gitblit v1.9.3