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(); } }
public AlbumOptimizationTaskState(AlbumOptimizationTask albumOptimizationTask) { this.AlbumId = albumOptimizationTask.AlbumId; }