/// <summary> /// Updates the Verify Hosts(ics) tab UI steps with status icons /// </summary> /// <remarks> Callback method for the Redirector.ApplyRedirectsAsync Method's IProgress.</remarks> /// <param name="Step"></param> 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); } } }
/// <summary> /// Updates the Verify Hosts(ics) tab UI steps with status icons /// </summary> /// <remarks> Callback method for the Redirector.ApplyRedirectsAsync Method's IProgress.</remarks> /// <param name="Step"></param> 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); } }