BF2Statistics.GamespyRedirectForm.ShowHostsErrorPage C# (CSharp) Method

ShowHostsErrorPage() private method

private ShowHostsErrorPage ( ) : void
return void
        private void ShowHostsErrorPage()
        {
            // Set title
            textErrLabel.Text = FailedStep.Description;

            // Set detail text based on step
            switch (FailedStep.StepId)
            {
                case 0:
                    // Unlock
                case 1:
                    // Read
                case 2:
                    // Write
                case 4:
                    // Save Changes
                    textErrDetails.Text = "Please make sure this program is being ran as an administrator, or "
                        + "modify your HOSTS file permissions allowing this program to read/modify it.";
                    break;
                case 5:
                    textErrDetails.Text = FailedStep.Error.Message ?? "";
                    break;
            }

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

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