Exemple #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);
            }
        }
Exemple #2
0
 internal void SetShapeConnection(ShapeConnection connection)
 {
     System.Diagnostics.Debug.Assert(connection != ShapeConnection.Empty);
     this._connection = connection;
 }
Exemple #3
0
 /// <ToBeCompleted></ToBeCompleted>
 protected internal RepositoryShapeConnectionEventArgs(ShapeConnection shapeConnection)
     : this(shapeConnection.ConnectorShape, shapeConnection.GluePointId, shapeConnection.TargetShape, shapeConnection.TargetPointId)
 {
 }
Exemple #4
0
 internal void SetShapeConnection(ShapeConnection connection)
 {
     System.Diagnostics.Debug.Assert(connection != ShapeConnection.Empty);
     this.connection = connection;
 }
Exemple #5
0
 internal void Clear()
 {
     connection = ShapeConnection.Empty;
 }
Exemple #6
0
 /// <ToBeCompleted></ToBeCompleted>
 protected internal RepositoryShapeConnectionEventArgs()
 {
     this.connection = ShapeConnection.Empty;
 }
Exemple #7
0
 /// <ToBeCompleted></ToBeCompleted>
 protected internal RepositoryShapeConnectionEventArgs(ShapeConnection shapeConnection)
     : this(shapeConnection.ConnectorShape, shapeConnection.GluePointId, shapeConnection.TargetShape, shapeConnection.TargetPointId)
 {
 }