void SetProgress(int value) { if (progressBar.InvokeRequired) { SetProgressCallBack callBack = new SetProgressCallBack(SetProgress); Invoke(callBack, new object[] { value }); } else { progressBar.Value = value; } }
private void SetProgressText(string displayText) { if (this.bsprdSPCModel.InvokeRequired) { SetProgressCallBack dele = new SetProgressCallBack(SetProgressText); this.Invoke(dele, new object[] { displayText }); } else { this.lblProgress.Text = displayText; } }
internal void SetLoadProgress(int percent) { if (percent > 100) return; if (this.progressBar.InvokeRequired) { SetProgressCallBack d = new SetProgressCallBack(SetLoadProgress); this.Invoke(d, new object[] { percent }); } else { this.progressBar.Value = percent; } //this.Refresh(); Application.DoEvents(); }
internal void SetLoadProgress(int percent) { if (percent > 100) { return; } if (this.progressBar.InvokeRequired) { SetProgressCallBack d = new SetProgressCallBack(SetLoadProgress); this.Invoke(d, new object[] { percent }); } else { this.progressBar.Value = percent; } //this.Refresh(); Application.DoEvents(); }