Exemplo n.º 1
0
        private void NetworkDeleted(object sender, NetworkEventArgs e)
        {
            lock (_connections)
            {
                RemoveByNetworkID(e.NetworkID);
            }

            Invoked();
        }
Exemplo n.º 2
0
        private void NetworkAdded(object sender, NetworkEventArgs e)
        {
            var connections = GetCurrentConnectionsByNetwork(e.NetworkID);

            if (connections == null)
            {
                return;
            }

            lock (_connections)
            {
                RemoveByNetworkID(e.NetworkID);
                _connections.AddRange(connections);
            }

            Invoked();
        }