Commit 165759d2 authored by wangwanxh@sina.com's avatar wangwanxh@sina.com

Merge branch 'wang_master' of https://gitee.com/wangwanxh/Vocs into wang_master

parents e39ecab6 c803c695
...@@ -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