void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
UpdateProgressLog("************************************");
UpdateProgressLog("DONE ");
UpdateProgressLog("************************************");
this.Clam.ShowClamWinVirusUpdateWindow = false;
this.Clam.ProgressIsIndeterminate = false;
if (this.Clam.InfectedFilesCount == 0)
{
if(blnIsCancel)
UpdateProgressLog("Operation Canceled.");
else
UpdateProgressLog("No virus found");
this.Clam.EnableCleanNowButton = false;
this.Clam.EnableCancelButton = false;
this.Clam.EnableCloseButton = true;
}
else
{
// if virus found
this.Clam.EnableCleanNowButton = true;
this.Clam.EnableCancelButton = false;
this.Clam.EnableCloseButton = true;
if (this.IsRemove)
{
UpdateProgressLog(string.Format("{0} virus removed", this.Clam.InfectedFilesCount));
}
else
{
UpdateProgressLog(string.Format("{0} virus found! Click 'Clean Now'!", this.Clam.InfectedFilesCount));
}
}
}