public void setMaximo(int max) { if (DataGrid_Usuarios.InvokeRequired) { setMaximun dg = new setMaximun(setMaximo); this.Invoke(dg, new object[] { max }); } else { ProgressBar.Maximum = max; } }
public void setMax(int max) { if (DataGrid_Incidentes.InvokeRequired) { setMaximun establecermax = new setMaximun(setMax); this.Invoke(establecermax, new object[] { max }); } else { ProgressBar.Maximum = max; } }