예제 #1
0
        public void RemoveConnection(Shape ToShape)
        {
            // find the ShapeConnection that stores the connection to the ToShape.
            ShapeConnection findConn = null;

            foreach (var shapeConn in this.ConnectedToShapes)
            {
                if (shapeConn.ToShape == ToShape)
                {
                    findConn = shapeConn;
                    break;
                }
            }

            if (findConn != null)
            {
                this.ConnectedToShapes.Remove(findConn);
            }
        }
예제 #2
0
 internal void SetShapeConnection(ShapeConnection connection)
 {
     System.Diagnostics.Debug.Assert(connection != ShapeConnection.Empty);
     this._connection = connection;
 }
예제 #3
0
 /// <ToBeCompleted></ToBeCompleted>
 protected internal RepositoryShapeConnectionEventArgs(ShapeConnection shapeConnection)
     : this(shapeConnection.ConnectorShape, shapeConnection.GluePointId, shapeConnection.TargetShape, shapeConnection.TargetPointId)
 {
 }
예제 #4
0
 internal void SetShapeConnection(ShapeConnection connection)
 {
     System.Diagnostics.Debug.Assert(connection != ShapeConnection.Empty);
     this.connection = connection;
 }
예제 #5
0
 internal void Clear()
 {
     connection = ShapeConnection.Empty;
 }
예제 #6
0
 /// <ToBeCompleted></ToBeCompleted>
 protected internal RepositoryShapeConnectionEventArgs()
 {
     this.connection = ShapeConnection.Empty;
 }
예제 #7
0
 /// <ToBeCompleted></ToBeCompleted>
 protected internal RepositoryShapeConnectionEventArgs(ShapeConnection shapeConnection)
     : this(shapeConnection.ConnectorShape, shapeConnection.GluePointId, shapeConnection.TargetShape, shapeConnection.TargetPointId)
 {
 }