Стандартная реализация ITaskIndicator
Inheritance: ITaskIndicator
        public ITaskIndicator AppendTaskIndicator(string taskName)
        {
            var indicator = new TaskIndicator(taskName, RefreshIndicators);

            _indicators.Add(indicator);
            _asyncOp.Post(
                () =>
            {
                _syncTaskList.VirtualListSize = _indicators.Count;
                _refreshDurationTimer.Enabled = true;
            });
            RefreshIndicators();
            return(indicator);
        }
Beispiel #2
0
		public ITaskIndicator AppendTaskIndicator(string taskName)
		{
			var indicator = new TaskIndicator(taskName, RefreshIndicators);
			_indicators.Add(indicator);
			_asyncOp.Post(
				() =>
				{
					_syncTaskList.VirtualListSize = _indicators.Count;
					_refreshDurationTimer.Enabled = true;
				});
			RefreshIndicators();
			return indicator;
		}