public void StatueUpdate(string str) { if (this.lab_status.InvokeRequired)//wait invoke { DelegateStatueUpdate d = new DelegateStatueUpdate(StatueUpdate); this.Invoke(d, new object[] {str}); } else { this.lab_status.Text = str; } }
public void StatueUpdate(string str) { if (this.lab_status.InvokeRequired)//wait invoke { DelegateStatueUpdate d = new DelegateStatueUpdate(StatueUpdate); this.Invoke(d, new object[] { str }); } else { this.lab_status.Text = str; } }