Shuxia Ning
2024-11-25 d4898c5d7e1bbbbba384a0e29f29c066d6f502a7
WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/NetworkViewModel.cs
@@ -702,7 +702,7 @@
    //构造一个List<LinkViewModel>类,能够实现List的所有功能
    [Serializable]
    public class LinkViewModelList : List<Q3DLinkCalcModel>
    public class LinkViewModelList : List<LinkViewModel>
    {
        Dictionary<string, LinkViewModel> dict;
@@ -865,13 +865,13 @@
    //构造一个List<NodeViewModel>类,能够实现List的所有功能
    [Serializable]
    public class NodeViewModelList : List<Q3DNodeCalcModel>
    public class NodeViewModelList : List<NodeViewModel>
    {
        //List<NodeCalcModel> base;
        Dictionary<string, Q3DNodeCalcModel> dict;//=new Dictionary<string, NodeCalcModel>();//
        Dictionary<string, NodeViewModel> dict;//=new Dictionary<string, NodeCalcModel>();//
        public NodeViewModelList() : base()
        {
            this.dict = new Dictionary<string, Q3DNodeCalcModel>();
            this.dict = new Dictionary<string, NodeViewModel>();
        }
        //public NodeViewModelList(List<NodeCalcModel> nodes)
        //{
@@ -887,7 +887,7 @@
        /// </summary>
        public void UpdateDict()
        {
            this.dict = new Dictionary<string, Q3DNodeCalcModel>();
            this.dict = new Dictionary<string, NodeViewModel>();
            base.ForEach(node =>
            {
                if (!dict.ContainsKey(node.ID))