| | |
| | | using System.Runtime.InteropServices; |
| | | using Hydro.HydraulicOptimizer; |
| | | using Hydro.Core; |
| | | using System.Xml.Linq; |
| | | |
| | | namespace Hydro.MapView |
| | | { |
| | |
| | | public NodeViewModel StartPoint { get; set; } |
| | | |
| | | public NodeViewModel EndPoint { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 当量集合,当量模板ID,<器具ID,数量> |
| | | /// </summary> |
| | | //public Dictionary<long,Dictionary<long,int>> DlList { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 核心承载字段 |
| | |
| | | EndPoint = network.EndPoint; |
| | | } |
| | | } |
| | | public List<IBaseViewModel> Add(MapViewNetWork net0, PointF3D offset = null, bool isCopy = false) |
| | | public List<IBaseViewModel> Add(MapViewNetWork net0, PointF3D offset = null, bool isCopy = false,NodeViewModel ConnectNode=null) |
| | | { |
| | | if (offset == null) |
| | | { |
| | |
| | | Hash_ID.Add(l.ID); |
| | | list.Add(l); |
| | | }); |
| | | if (ConnectNode!=null) |
| | | { |
| | | var l = AddPipe(ConnectNode, net.StartPoint); |
| | | list.Add(l); |
| | | Hash_ID.Add(l.ID); |
| | | } |
| | | //BuildRelation(); |
| | | return list; |
| | | } |