Пример #1
0
            void UpdateConnectGroups(NetInfo netInfo)
            {
                LogCalled();
                ConnectGroupsHash = ConnectGroups?.Select(item => item.GetHashCode()).ToArray();
                if (ConnectGroupsHash.IsNullorEmpty())
                {
                    ConnectGroupsHash = null;
                }

                foreach (var node in netInfo.m_nodes)
                {
                    node.GetMetaData()?.Update();
                }

                NodeConnectGroupsHash = GetNodeConnectGroupsHash(netInfo).ToArray();
                if (NodeConnectGroupsHash.IsNullorEmpty())
                {
                    NodeConnectGroupsHash = null;
                }

                var itemSource = ItemSource.GetOrCreate(typeof(NetInfo.ConnectGroup));

                foreach (var connectGroup in GetAllConnectGroups(netInfo))
                {
                    itemSource.Add(connectGroup);
                }
            }