Changeset 2364
- Timestamp:
- 11/7/2011 7:24:13 AM (19 months ago)
- Location:
- branches/eraser6/pluginsRewrite
- Files:
-
- 2 edited
- 1 moved
-
Eraser.Manager/ErasureTargetCollection.cs (moved) (moved from branches/eraser6/pluginsRewrite/Eraser.Manager/ErasureTarget.cs) (5 diffs)
-
Eraser.Manager/Task.cs (modified) (3 diffs)
-
Eraser.Plugins/ExtensionPoints/ErasureTarget.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/pluginsRewrite/Eraser.Manager/ErasureTargetCollection.cs
r2357 r2364 39 39 /// </summary> 40 40 [Serializable] 41 public class ErasureTarget sCollection : IList<ErasureTarget>, ISerializable41 public class ErasureTargetCollection : IList<ErasureTarget>, ISerializable 42 42 { 43 43 #region Constructors 44 internal ErasureTarget sCollection(Task owner)44 internal ErasureTargetCollection(Task owner) 45 45 { 46 46 this.list = new List<ErasureTarget>(); … … 48 48 } 49 49 50 internal ErasureTarget sCollection(Task owner, int capacity)50 internal ErasureTargetCollection(Task owner, int capacity) 51 51 : this(owner) 52 52 { … … 54 54 } 55 55 56 internal ErasureTarget sCollection(Task owner, IEnumerable<ErasureTarget> targets)56 internal ErasureTargetCollection(Task owner, IEnumerable<ErasureTarget> targets) 57 57 : this(owner) 58 58 { … … 62 62 63 63 #region Serialization Code 64 protected ErasureTarget sCollection(SerializationInfo info, StreamingContext context)64 protected ErasureTargetCollection(SerializationInfo info, StreamingContext context) 65 65 { 66 66 list = (List<ErasureTarget>)info.GetValue("list", typeof(List<ErasureTarget>)); … … 91 91 public void Add(ErasureTarget item) 92 92 { 93 item.Task = owner;94 item.OnProgressChanged = owner.OnProgressChanged;95 93 list.Add(item); 96 94 } -
branches/eraser6/pluginsRewrite/Eraser.Manager/Task.cs
r2275 r2364 44 44 Name = (string)info.GetValue("Name", typeof(string)); 45 45 Executor = context.Context as Executor; 46 Targets = (ErasureTarget sCollection)info.GetValue("Targets", typeof(ErasureTargetsCollection));46 Targets = (ErasureTargetCollection)info.GetValue("Targets", typeof(ErasureTargetCollection)); 47 47 Targets.Owner = this; 48 48 Log = (List<LogSink>)info.GetValue("Log", typeof(List<LogSink>)); … … 79 79 { 80 80 Name = string.Empty; 81 Targets = new ErasureTarget sCollection(this);81 Targets = new ErasureTargetCollection(this); 82 82 Schedule = Schedule.RunNow; 83 83 Canceled = false; … … 170 170 /// The set of data to erase when this task is executed. 171 171 /// </summary> 172 public ErasureTarget sCollection Targets { get; private set; }172 public ErasureTargetCollection Targets { get; private set; } 173 173 174 174 /// <summary> -
branches/eraser6/pluginsRewrite/Eraser.Plugins/ExtensionPoints/ErasureTarget.cs
r2358 r2364 138 138 139 139 /// <summary> 140 /// The progress of this target.141 /// </summary>142 public ProgressManagerBase Progress143 {144 get;145 protected set;146 }147 148 /// <summary>149 140 /// The Progress Changed event handler of the owning task. 150 141 /// </summary>
Note: See TracChangeset
for help on using the changeset viewer.
