Ejemplo n.º 1
0
 private void replaceArcWithInheritedType(arc origArc, node fromNode, node toNode)
 {
     this.addArc(origArc.name, origArc.arcType, fromNode, toNode);
     origArc.copy(arcs[lastArc]);
     arcs[lastArc].displayShape = origArc.displayShape;
     this.removeArc(origArc);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Replaces the type of the arc with inherited.
 /// </summary>
 /// <param name="origArc">The orig arc.</param>
 /// <param name="newType">The new type.</param>
 public void replaceArcWithInheritedType(arc origArc, Type newType)
 {
     addArc(origArc.From, origArc.To, origArc.name, newType);
     origArc.copy(arcs.Last());
     arcs.Last().DisplayShape = origArc.DisplayShape;
     removeArc(origArc);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Replaces the type of the arc with inherited.
        /// </summary>
        /// <param name="origArc">The orig arc.</param>
        /// <param name="newType">The new type.</param>
        public void replaceArcWithInheritedType(arc origArc, Type newType)
        {
            var newArc = addArc(origArc.From, origArc.To, origArc.name, newType);

            origArc.copy(newArc);
            newArc.DisplayShape = origArc.DisplayShape;
            removeArc(origArc);
        }
Ejemplo n.º 4
0
 private void replaceArcWithInheritedType(arc origArc, node fromNode, node toNode)
 {
     this.addArc(origArc.name, origArc.arcType, fromNode, toNode);
     origArc.copy(arcs[lastArc]);
     arcs[lastArc].displayShape = origArc.displayShape;
     this.removeArc(origArc);
 }