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