Пример #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);
 }
 /// <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);
 }
Пример #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);
        }
Пример #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);
 }