OpenHome.Songcast.SubnetList.SubnetAt C# (CSharp) Method

SubnetAt() public method

public SubnetAt ( int aIndex ) : Subnet
aIndex int
return Subnet
        public Subnet SubnetAt(int aIndex)
        {
            return (iList[aIndex]);
        }

Usage Example

Ejemplo n.º 1
0
        private void EventComboBoxNetworkSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int index = comboBoxNetwork.SelectedIndex;

            if (index >= 0)
            {
                uint address = iSubnetList.SubnetAt(index).Address;

                if (iConfiguration.Subnet != address)
                {
                    iConfiguration.Subnet = address;
                    iConfiguration.Save();
                    InformListeners(SubnetChanged);
                }
            }
        }