private void UpdateStatusBar(string text) { if (this.statusStrip.InvokeRequired) { UpdateStatusBarEventHandler obj = new UpdateStatusBarEventHandler(this.UpdateStatusBar); this.Invoke(obj, new object[] { text }); } else { this.ProgressLabel.Text = text; } }