BF2Statistics.GamespyRedirectForm.HostsRadio_CheckedChanged C# (CSharp) Method

HostsRadio_CheckedChanged() private method

private HostsRadio_CheckedChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void HostsRadio_CheckedChanged(object sender, EventArgs e)
        {
            // If we arent selected, return
            if (!HostsRadio.Checked) return;

            SelectedMode = RedirectMode.HostsFile;
            descTextBox.Text = "By enabling this option, this program will attempt to store the Gamespy redirects inside the system HOSTS file. "
                + "Battlefield 2 will check the hosts file for Gamespy redirects, so we must also remove READ permissions to prevent this. "
                + "This option should be used as a last resort, since removing READ permissions from the HOSTS file can cause Windows DNS server "
                + "to undo the gamespy redirects when it refreshes itself.";
        }