public void InitTotalProgressBar(int TotalMaximum) { if (this.pbTotal.InvokeRequired) { InitTotalProgressBarDelegate dInitTotalPb = new InitTotalProgressBarDelegate(InitTotalProgressBar); this.Invoke(dInitTotalPb, new object[] { TotalMaximum }); } else { this.pbTotal.Value = 0; this.pbTotal.Maximum = TotalMaximum; } }
public void InitCurrentProgressBar(int CurrentMaximum) { if (this.pbCurrent.InvokeRequired) { InitTotalProgressBarDelegate dInitCurrentPb = new InitTotalProgressBarDelegate(InitCurrentProgressBar); this.Invoke(dInitCurrentPb, new object[] { CurrentMaximum }); } else { this.pbCurrent.Value = 0; this.pbCurrent.Maximum = CurrentMaximum; this.lbTotalRecord.Text = this.pbCurrent.Maximum.ToString(); this.lbCurrentRecord.Text = "0"; } }