コード例 #1
0
        private void UpdateProgress()
        {
            AlbumOptimizationTask albumOptimizationTask = this;

            albumOptimizationTask._currentIndex = albumOptimizationTask._currentIndex + 1;
            TaskProgressEventArgs taskProgressEventArg = new TaskProgressEventArgs()
            {
                Progress      = this._currentIndex * 100 / this._itemsCount,
                StatusMessage = ""
            };
            TaskProgressEventArgs taskProgressEventArg1 = taskProgressEventArg;

            this.OnProgressChanged(taskProgressEventArg1);
            if (taskProgressEventArg1.Stopped)
            {
                throw new TaskStoppedException();
            }
        }
コード例 #2
0
 public AlbumOptimizationTaskState(AlbumOptimizationTask albumOptimizationTask)
 {
     this.AlbumId = albumOptimizationTask.AlbumId;
 }