void updateHelper_UpdateStepMismatch(object sender, Response respType, UpdateStep previousStep)
{
// we can't install right now
if (previousStep == UpdateStep.RestartInfo)
{
if (ClosingAborted != null)
ClosingAborted(this, EventArgs.Empty);
ClosingForInstall = false;
}
if (respType == Response.Progress)
{
switch (updateHelper.UpdateStep)
{
case UpdateStep.CheckForUpdate:
UpdateStepOn = UpdateStepOn.Checking;
break;
case UpdateStep.DownloadUpdate:
UpdateStepOn = UpdateStepOn.DownloadingUpdate;
break;
case UpdateStep.BeginExtraction:
UpdateStepOn = UpdateStepOn.ExtractingUpdate;
break;
}
}
if (UpdateStepMismatch != null)
UpdateStepMismatch(this, EventArgs.Empty);
}