0
我有一個後臺工作人員檢查字節大小和MD5哈希的文件列表。當它檢查它們時,我想要一個標籤來說Checking 'FileName'
。每個文件更改背景工作人員標籤
這是我的進步改變事件:
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
var fileName = Convert.ToString(e.UserState);
lblCheckFile.Text = string.Format("Downloading {0}", fileName);
pBarFileProgress.Value = e.ProgressPercentage;
gbFileProgress.Text = String.Format("Current File Progress: {0} %", e.ProgressPercentage);
}
我把它說downloading
用於當其實際下載的,但我想它說Checking
,並有專門的響應進度條爲好。在下載之前。