Changeset 4156 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 08/04/10 18:00:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/Run.cs
r4102 r4156 50 50 } 51 51 52 private Color color = Color.Black; 52 [Storable] 53 private Color color; 53 54 public Color Color { 54 55 get { return this.color; } … … 77 78 } 78 79 80 [StorableConstructor] 81 private Run(bool deserializing) : base(deserializing) { } 79 82 public Run() 80 83 : base() { 81 84 name = ItemName; 82 85 description = ItemDescription; 86 color = Color.Black; 83 87 algorithm = null; 84 88 parameters = new Dictionary<string, IItem>(); … … 90 94 name = algorithm.Name + " Run (" + algorithm.ExecutionTime.ToString() + ")"; 91 95 description = ItemDescription; 96 color = Color.Black; 92 97 Initialize(algorithm); 93 98 } … … 95 100 : base(name) { 96 101 if (algorithm == null) throw new ArgumentNullException(); 102 color = Color.Black; 97 103 description = ItemDescription; 98 104 Initialize(algorithm); … … 101 107 : base(name, description) { 102 108 if (algorithm == null) throw new ArgumentNullException(); 109 color = Color.Black; 103 110 Initialize(algorithm); 104 111 } … … 116 123 } 117 124 125 [StorableHook(HookType.AfterDeserialization)] 126 private void AfterDeserializationHook() { 127 if (color == Color.Empty) color = Color.Black; 128 } 129 118 130 public override IDeepCloneable Clone(Cloner cloner) { 119 131 Run clone = (Run)base.Clone(cloner);
Note: See TracChangeset
for help on using the changeset viewer.