private void OnTaskComplete(object sender, CompleteEventArgs e) { if (this.InvokeRequired) { this.Invoke(new CompleteEventHandler(OnTaskComplete), new object[] { sender, e }); } else { progressBar.Position = 0; } }
private void OnAllComplete(object sender, CompleteEventArgs e) { if (this.InvokeRequired) { this.Invoke(new CompleteEventHandler(OnAllComplete), new object[] { sender, e }); } else { _CanClose = true; enableControls(true); progressBarAll.Position = 0; if (e.Success) _BeenRunSuccessfully = true; } }