private void SetProgressMaxMin(ProgressBar prg, int nMax, int nMin) { if (prg.InvokeRequired) { SetProgresMaxMinValue method = new SetProgresMaxMinValue(this.SetProgressMaxMin); base.Invoke(method, new object[] { prg, nMax, nMin }); } else { prg.Maximum = nMax; prg.Minimum = nMin; base.Update(); } }
private void SetProgressMaxMin(ProgressBar prg, int nMax, int nMin) { if (prg.InvokeRequired) { SetProgresMaxMinValue method = new SetProgresMaxMinValue(this.SetProgressMaxMin); base.Invoke(method, new object[] { prg, nMax, nMin }); } else { prg.Maximum = nMax; prg.Minimum = nMin; base.Update(); } }