public WrpAddress(Int32 addr, String label, int i, AddressCollection addrColl) { Address = addr; this.label = label; index = i; addressCollection = addrColl; }
public WrpAddressCollection(AddressCollection addressCollection) { if (addressCollection.ChannelDescriptions.Count < addressCollection.Addresses.Count) throw new ArgumentException("The amount of ChannelDescriptions must not be less than the amount of channels"); addresses = new List<WrpAddress>(addressCollection.Addresses.Count); this.addressCollection = addressCollection; int i = 0; foreach (Int32 item in addressCollection.Addresses) { addresses.Add(new WrpAddress(item, addressCollection.ChannelDescriptions[i], i, addressCollection)); i++; } }
public ViewModelBase(AddressCollection listAddresses) : this() { ListAddresses = listAddresses; }