private void SubnetAdded(IntPtr aSubnet) { Subnet subnet = new Subnet(aSubnet); iSubnetList.Add(subnet); iSubnetHandler.SubnetAdded(subnet); }
internal void Added(ISubnet aSubnet) { Subnet subnet = new Subnet(aSubnet); iList.Add(subnet); if (CollectionChanged != null) { CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, subnet)); } if (CountChanged != null) { CountChanged(this, EventArgs.Empty); } }