Changeset 2896 for trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/GraphVisualizationInfo.cs
- Timestamp:
- 03/01/10 13:08:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/GraphVisualizationInfo.cs
r2893 r2896 187 187 } 188 188 189 private void OperatorNameChanged(object sender, EventArgs e) { 190 IOperator op = (IOperator)sender; 191 IShapeInfo shapeInfo = this.shapeInfoMapping.GetByFirst(op); 192 OperatorShapeInfo operatorShapeInfo = shapeInfo as OperatorShapeInfo; 193 if (operatorShapeInfo != null) 194 operatorShapeInfo.Title = op.Name; 195 } 196 189 197 private void Operators_ItemsAdded(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IOperator> e) { 190 198 foreach (IOperator op in e.Items) … … 207 215 op.Parameters.ItemsReplaced += new CollectionItemsChangedEventHandler<IParameter>(Parameters_ItemsReplaced); 208 216 op.Parameters.CollectionReset += new CollectionItemsChangedEventHandler<IParameter>(Parameters_CollectionReset); 209 } 217 op.NameChanged += new EventHandler(OperatorNameChanged); 218 } 219 210 220 private void DeregisterOperatorEvents(IOperator op) { 211 221 op.Parameters.ItemsAdded -= new CollectionItemsChangedEventHandler<IParameter>(Parameters_ItemsAdded); … … 213 223 op.Parameters.ItemsReplaced -= new CollectionItemsChangedEventHandler<IParameter>(Parameters_ItemsReplaced); 214 224 op.Parameters.CollectionReset -= new CollectionItemsChangedEventHandler<IParameter>(Parameters_CollectionReset); 225 op.NameChanged -= new EventHandler(OperatorNameChanged); 215 226 } 216 227 #endregion
Note: See TracChangeset
for help on using the changeset viewer.