示例#1
0
        public void EnterProgressGroup(int tickCount, string progressText)
        {
            var newGroup = new ProgressGroup();

            newGroup.CountOfTicks = tickCount;
            newGroup.ActualTick   = 0;
            newGroup.Text         = progressText;
            _groups.Add(newGroup);
            SetProgressText();
        }
示例#2
0
        public void DoTick()
        {
            if (_groups.Count <= 0)
            {
                return;
            }

            ProgressGroup pr = _groups[_groups.Count - 1];

            if (pr.ActualTick < pr.CountOfTicks)
            {
                pr.ActualTick += 1;
            }

            SetProgressValue();
        }