public void EnterProgressGroup(int tickCount, string progressText) { var newGroup = new ProgressGroup(); newGroup.CountOfTicks = tickCount; newGroup.ActualTick = 0; newGroup.Text = progressText; _groups.Add(newGroup); SetProgressText(); }
public void DoTick() { if (_groups.Count <= 0) { return; } ProgressGroup pr = _groups[_groups.Count - 1]; if (pr.ActualTick < pr.CountOfTicks) { pr.ActualTick += 1; } SetProgressValue(); }