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
...@@ -424,12 +424,16 @@ namespace GcDevicePc ...@@ -424,12 +424,16 @@ namespace GcDevicePc
} }
private void WaitHMIFree() private void WaitHMIFree()
{
if (!backgroundWorker1.IsBusy)
{ {
this.workProgress.Visible = true; this.workProgress.Visible = true;
this.workProgress.Value = 0; this.workProgress.Value = 0;
this.backgroundWorker1.RunWorkerAsync(); this.backgroundWorker1.RunWorkerAsync();
} }
}
private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e) private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e)
{ {
int ret = -1; int ret = -1;
......
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