BF2Statistics.GamespyRedirectForm.RedirectStatusUpdate C# (CSharp) Method

RedirectStatusUpdate() private method

Updates the Verify Hosts(ics) tab UI steps with status icons
Callback method for the Redirector.ApplyRedirectsAsync Method's IProgress.
private RedirectStatusUpdate ( TaskStep Step ) : void
Step TaskStep
return void
        private void RedirectStatusUpdate(TaskStep Step)
        {
            // Get the picture box number
            int PicId = (SelectedMode == RedirectMode.HostsFile) ? 0 : 6;
            PicId += Step.StepId;

            // Update the status on the GUI
            if (Step.IsFaulted)
            {
                SetHostStatus(PicId, Step.Description, Resources.cross);

                // Set Internal
                FailedStep = Step;
            }
            else
            {
                SetHostStatus(PicId, Step.Description, Resources.check);

                // Set loading icon of the next step
                if (PicId < 11)
                    SetHostStatus(++PicId, "", Resources.loading);
            }
        }