Commit e18693e1 authored by wangjunqiang's avatar wangjunqiang

修复再Free过程中系统退出时的bug

parent bda0276b
...@@ -425,9 +425,13 @@ namespace GcDevicePc ...@@ -425,9 +425,13 @@ namespace GcDevicePc
private void WaitHMIFree() private void WaitHMIFree()
{ {
this.workProgress.Visible = true; if (!backgroundWorker1.IsBusy)
this.workProgress.Value = 0; {
this.backgroundWorker1.RunWorkerAsync(); this.workProgress.Visible = true;
this.workProgress.Value = 0;
this.backgroundWorker1.RunWorkerAsync();
}
} }
private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e) private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment