Пример #1
0
        private void Progress_Starting(ProgressTask progressTask)
        {
            // We're only looking for this specific task:
            if (this.currentTask != null || progressTask.TaskKey != this.TaskKey)
            {
                return;
            }

            // Keep track of this task so we can poll it:
            this.currentTask = progressTask;
            progressTask.EnablePolling(this.MaximumDepth);

            // Start polling for progress:
            Timer.Start();

            progressTask.SetCallbackEnded(this.OnProgressEnding);
        }