コード例 #1
0
ファイル: WrpAddress.cs プロジェクト: Lucasvo1/FHVGame
 public WrpAddress(Int32 addr, String label, int i, AddressCollection addrColl)
 {
     Address = addr;
     this.label = label;
     index = i;
     addressCollection = addrColl;
 }
コード例 #2
0
        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++;
            }
        }
コード例 #3
0
ファイル: ViewModelBase.cs プロジェクト: Lucasvo1/FHVGame
 public ViewModelBase(AddressCollection listAddresses)
     : this()
 {
     ListAddresses = listAddresses;
 }