Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/25/10 17:28:31 (14 years ago)
Author:
mkommend
Message:

finished mapping from OperatorGraph to GraphVisualizationInfo (ticket #867)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/Model/OperatorShapeInfo.cs

    r2861 r2868  
    5454      if (this.connectorNames.Contains(connectorName)) {
    5555        this.connectorNames.Remove(connectorName);
    56         if (this.connections.ContainsKey(connectorName))
    57           this.connections.Remove(connectorName);
    5856        this.OnChanged();
    5957      }
    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;
    7358    }
    7459
     
    137122        }
    138123        //remove old connectors
    139         for (; j < oldConnectorNames.Count; i++)
     124        for (; j < oldConnectorNames.Count; j++)
    140125          operatorShape.RemoveConnector(oldConnectorNames[j]);
    141126
Note: See TracChangeset for help on using the changeset viewer.