From ad8f813f5eddd66740b4e09801e4ea02ddf70a4a Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期三, 19 二月 2025 15:58:22 +0800 Subject: [PATCH] 继续优化报表 --- WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/Map/Drawer.cs | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/Map/Drawer.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/Map/Drawer.cs index e216344..2d0b0bd 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/Map/Drawer.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/Map/Drawer.cs @@ -2692,6 +2692,27 @@ return projectedPoints; } + public void SetSelectObj(List<string> ids) + { + //鏋勯�犱袱涓瓧鍏革紝涓�涓槸鑺傜偣锛屼竴涓槸绠¢亾 + var dict_nodes = _Nodes.ToDictionary(o => o.ID); + var dict_links = _Links.ToDictionary(o => o.ID); + //閬嶅巻鎵�鏈夌殑id锛屾壘鍒板搴旂殑瀵硅薄 + foreach (var id in ids) + { + if (dict_nodes.ContainsKey(id)) + { + dict_nodes[id].Selected = true; + selectedObjs.Add(dict_nodes[id]); + } + else if (dict_links.ContainsKey(id)) + { + dict_links[id].Selected = true; + selectedObjs.Add(dict_links[id]); + } + } + } + bool _isSettingBackGroundPictur = false; -- Gitblit v1.9.3