private void DHCP_DNS(bool enable, bool select = true) { if (enable) { if (select) { DNSAutoRadio.Select(); } dnsGroup.Enabled = false; } else { if (select) { DNSStaticRadio.Select(); } dnsGroup.Enabled = true; } }
private void DHCP_IP(bool enable, bool select = true) { if (enable) { if (select) { DHCPRadio.Select(); } UseIPGroup.Enabled = false; DNSAutoRadio.Enabled = true; } else { if (select) { StaticRadio.Select(); } DNSStaticRadio.Select(); UseIPGroup.Enabled = true; DNSAutoRadio.Enabled = false; } }