SubnetAt() public method

public SubnetAt ( int aIndex ) : Subnet
aIndex int
return Subnet
示例#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);
                }
            }
        }