protected override void ProcessAddConnShape(ConnectionPort StartPort, ConnectionPort EndPort)
 {
     BaseConnShape Line = new AssociationConnShape();
     Connection StartConn = new Connection(StartPort, Line);
     Connection EndConn = new Connection(EndPort, Line);
     StartPort.AddConnection(StartConn);
     EndPort.AddConnection(EndConn);
     Line.UpdateConeection(StartConn, EndConn);
     Panel.AddShape(Line);
     Line.setDepth(DefaultDepth);
     Panel.UpdateDepth();      
 }
示例#2
0
 public Connection(ConnectionPort _Port, BaseConnShape _Conn)
 {
     Port = _Port;
     Conn = _Conn;
 }
 protected abstract void ProcessAddConnShape(ConnectionPort StartPort, ConnectionPort EndPort);
示例#4
0
 public Connection(ConnectionPort _Port, BaseConnShape _Conn)
 {
     Port = _Port;
     Conn = _Conn;
 }