private backgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void | ||
sender | object | |
e | ProgressChangedEventArgs | |
Résultat | void |
private void backgroundWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
if (e.ProgressPercentage == 0)
progressBar.Value = 1;
else
progressBar.Value = e.ProgressPercentage;
}