BF2Statistics.GamespyRedirectForm.ShowDnsErrorPage C# (CSharp) Method

ShowDnsErrorPage() private method

private ShowDnsErrorPage ( ) : void
return void
        private void ShowDnsErrorPage()
        {
            // Set generic description
            textErrLabel.Text = "Failed to resolve the Gamespy entries in the Windows DNS Cache";

            // Set details text
            switch (Redirector.RedirectMethod)
            {
                case RedirectMode.DnsServer:
                    textErrDetails.Text = "The Windows Dns Server settings appear to be improperly configured. "
                      + "Please double check your internet adapter settings, and try again. If you are using an "
                      + "installed DNS software, ensure that it is running and the redirects are properly configured within it.";
                    break;
                case RedirectMode.HostsFile:
                    textErrDetails.Text = "It appears that the privilages set on the HOSTS file are too strict for Windows to open. "
                      + "Read permissions must be removed to prevent Battlefield 2 from detecting the Gamespy redirects. It may be a "
                      + "better option to try one of the other two redirect options.";
                    break;
                case RedirectMode.HostsIcsFile:
                    textErrDetails.Text = "The Hosts.ics file does not seem to be affecting the Windows DNS Client. Please make "
                      + "sure that you have Internet Connection Sharing enabled on your PC, as well as the DNS Client windows feature "
                      + "in the Control Panel.";
                    break;
            }

            // Get page index
            Step = pageControl1.TabPages.IndexOf(tabPageError);

            // Set the new index
            pageControl1.SelectedIndex = Step;
        }