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);
}
}