Changeset 2486 for branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/ErasureTargets/FileSystemObjectErasureTarget.cs
- Timestamp:
- 3/13/2012 11:06:57 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/ErasureTargets/FileSystemObjectErasureTarget.cs
r2470 r2486 205 205 if (Progress == null) 206 206 throw new InvalidOperationException("The Progress property must not be null."); 207 Task.Progress.Steps.Add(new SteppedProgressManagerStep(Progress,208 1.0f / Task.Targets.Count));209 207 210 208 //Iterate over every path, and erase the path. 211 209 for (int i = 0; i < paths.Count; ++i) 212 210 { 211 //Create a new progress manager for the file. 213 212 ProgressManager step = new ProgressManager(); 214 213 Progress.Steps.Add(new SteppedProgressManagerStep(step, 215 214 dataTotal == 0 ? 0.0f : paths[i].Length / (float)dataTotal, 216 S._("Erasing files...")));215 paths[i].FullName)); 217 216 EraseStream(paths[i], step); 218 step.MarkComplete();219 217 } 220 218 } … … 247 245 //Update the task progress 248 246 IErasureMethod method = EffectiveMethod; 249 /*OnProgressChanged(this, new ProgressChangedEventArgs(progress, 250 new TaskProgressChangedEventArgs(info.FullName, 0, method.Passes)));*/ 251 247 252 248 //Remove the read-only flag, if it is set. 253 249 if (isReadOnly = info.IsReadOnly) … … 261 257 throw new OperationCanceledException(S._("The task was cancelled.")); 262 258 259 progress.Tag = new object[2] { currentPass, method.Passes }; 263 260 progress.Total = totalData; 264 261 progress.Completed += lastWritten; 265 /*OnProgressChanged(this, new ProgressChangedEventArgs(progress,266 new TaskProgressChangedEventArgs(info.FullName, currentPass, method.Passes)));*/267 262 }; 268 263
Note: See TracChangeset
for help on using the changeset viewer.
