void action_ProgressChanged(HttpResult res) { while (panProgress.Created == false) { panProgress.CreateControl(); Application.DoEvents(); } panProgress.Invoke(new ProgressDelegate(updateProgress), new object[] { res.Value, res.Total, res.Caption, res.SubValue, res.SubTotal }); }
void action_ProgressChanged(object sender, EventArgs e) { while (panProgress.Created == false) { panProgress.CreateControl(); Application.DoEvents(); } panProgress.Invoke(new ProgressDelegate(updateProgress), new object[] { currentAction.Progress.Value, currentAction.Progress.Total, currentAction.Progress.Caption }); }