/// <summary> /// Constructor /// </summary> public DataGridViewProgressBarXColumn() { CellTemplate = new DataGridViewProgressBarXCell(); _ProgressBarX = new ProgressBarX(); _ProgressBarX.Visible = false; HookEvents(true); }
public void UpdateProgressBar(ProgressBarX progressBarX, int healtPercentage) { if (progressBarX.InvokeRequired) { progressBarX.BeginInvoke( new MethodInvoker( delegate { UpdateProgressBar(progressBarX, healtPercentage); })); } else { progressBarX.Value = healtPercentage; } }