Changeset 2868 for trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/OperatorShapeInfo.cs
- Timestamp:
- 02/25/10 17:28:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/OperatorShapeInfo.cs
r2861 r2868 54 54 if (this.connectorNames.Contains(connectorName)) { 55 55 this.connectorNames.Remove(connectorName); 56 if (this.connections.ContainsKey(connectorName))57 this.connections.Remove(connectorName);58 56 this.OnChanged(); 59 57 } 60 }61 62 public override void AddConnection(string fromConnectorName, IShapeInfo toShapeInfo) {63 this.connections.Add(fromConnectorName, toShapeInfo);64 }65 66 public override void RemoveConnection(string fromConnectorName) {67 if (this.connections.ContainsKey(fromConnectorName))68 this.connections.Remove(fromConnectorName);69 }70 71 public override void ChangeConnection(string fromConnectorName, IShapeInfo toShapeInfo) {72 this.connections[fromConnectorName] = toShapeInfo;73 58 } 74 59 … … 137 122 } 138 123 //remove old connectors 139 for (; j < oldConnectorNames.Count; i++)124 for (; j < oldConnectorNames.Count; j++) 140 125 operatorShape.RemoveConnector(oldConnectorNames[j]); 141 126
Note: See TracChangeset
for help on using the changeset viewer.