OpenHome.Songcast.SubnetList.Removed C# (CSharp) Méthode

Removed() private méthode

private Removed ( ISubnet aSubnet ) : void
aSubnet ISubnet
Résultat void
        internal void Removed(ISubnet aSubnet)
        {
            /* Do nothing on subnet removal
             *  - probably better to present users with a list of all the subnets they have had around since turning on
             *  - definitely better on closing down - all subnets are removed but we don't want the combobox to end up setting our configured subnet to 0 in the process
             */
            /*
            int index = 0;

            foreach (Subnet subnet in iList)
            {
                if (subnet.MapsTo(aSubnet))
                {
                    iList.Remove(subnet);

                    if (CollectionChanged != null)
                    {
                        CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, subnet, index));
                    }

                    if (CountChanged != null)
                    {
                        CountChanged(this, EventArgs.Empty);
                    }

                    return;
                }

                index++;
            }
            */
        }