| | |
| | | |
| | | |
| | | using DevExpress.XtraDiagram.Base; |
| | | |
| | | namespace Yw.WinFrmUI |
| | | { |
| | | public partial class BimfaceInterop3dContainer : UserControl, IBimfaceInterop3dContainer |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | #region 构件显隐 |
| | | |
| | | /// <summary> |
| | | /// 显示构件 |
| | | /// </summary> |
| | | /// <param name="ids">构件id列表</param> |
| | | public async Task ShowComponents(List<string> ids) |
| | | { |
| | | if (ids == null || ids.Count < 1) |
| | | { |
| | | return; |
| | | } |
| | | if (!_isViewInitialized) |
| | | { |
| | | return; |
| | | } |
| | | await this.webViewControl1.EvaluateScriptAsync("showComponents", ids); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 隐藏构件 |
| | | /// </summary> |
| | | /// <param name="ids">构件id列表</param> |
| | | public async Task HideComponents(List<string> ids) |
| | | { |
| | | if (ids == null || ids.Count < 1) |
| | | { |
| | | return; |
| | | } |
| | | if (!_isViewInitialized) |
| | | { |
| | | return; |
| | | } |
| | | await this.webViewControl1.EvaluateScriptAsync("hideComponents", ids); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 显示所有构件 |
| | | /// </summary> |
| | | public async Task ShowAllComponents() |
| | | { |
| | | if (!_isViewInitialized) |
| | | { |
| | | return; |
| | | } |
| | | await this.webViewControl1.EvaluateScriptAsync("showAllComponents()"); |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |