Changeset 7255 for branches/RegressionBenchmarks/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorShapeInfo.cs
- Timestamp:
- 01/02/12 11:40:31 (12 years ago)
- Location:
- branches/RegressionBenchmarks
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks
-
branches/RegressionBenchmarks/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorShapeInfo.cs
r6036 r7255 38 38 [StorableConstructor] 39 39 protected OperatorShapeInfo(bool deserializing) : base(deserializing) { } 40 [StorableHook(HookType.AfterDeserialization)] 41 private void AfterDeserialization() { 42 if (string.IsNullOrEmpty(this.typeName)) 43 typeName = title; 44 } 40 45 protected OperatorShapeInfo(OperatorShapeInfo original, Cloner cloner) 41 46 : base(original, cloner) { … … 45 50 lineWidth = original.lineWidth; 46 51 title = original.title; 52 typeName = original.typeName; 47 53 48 54 //mkommend: necessary because cloning a Bitmap is not threadsafe … … 129 135 130 136 [Storable] 137 private string typeName; 138 public string TypeName { 139 get { return this.typeName; } 140 set { 141 if (this.typeName != value) { 142 this.typeName = value; 143 this.OnChanged(); 144 } 145 } 146 } 147 148 [Storable] 131 149 private Color color; 132 150 public Color Color {
Note: See TracChangeset
for help on using the changeset viewer.