C# Class nHydrate.Dsl.ViewLinkConnectAction.ViewLinkConnectionTypeBase

Inheritance: DslDiagrams::ConnectionType
Afficher le fichier Open project: nHydrate/nHydrate

Méthodes publiques

Méthode Description
CanCreateConnection ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement, string &connectionWarning ) : bool

Called by the base ConnectAction class to determine if the given shapes can be connected.

This implementation delegates calls to the ConnectionBuilder EntityHasViewsBuilder.

CreateConnection ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams paintFeedbackArgs ) : void

Called by the base ConnectAction class to create the underlying relationship.

This implementation delegates calls to the ConnectionBuilder EntityHasViewsBuilder.

IsValidSourceAndTarget ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement ) : bool

Called by the base ConnectAction class to ask whether the given source and target are valid.

Always return true here, to give CanCreateConnection a chance to decide.

Méthodes protégées

Méthode Description
ViewLinkConnectionTypeBase ( )

Constructs a new the ViewLinkConnectionType with the given ConnectionBuilder.

Private Methods

Méthode Description
RemovePassThroughShapes ( global::Microsoft.VisualStudio.Modeling.Diagrams shape ) : DslDiagrams::ShapeElement

Method Details

CanCreateConnection() public méthode

Called by the base ConnectAction class to determine if the given shapes can be connected.
This implementation delegates calls to the ConnectionBuilder EntityHasViewsBuilder.
public CanCreateConnection ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement, string &connectionWarning ) : bool
sourceShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
targetShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
connectionWarning string
Résultat bool

CreateConnection() public méthode

Called by the base ConnectAction class to create the underlying relationship.
This implementation delegates calls to the ConnectionBuilder EntityHasViewsBuilder.
public CreateConnection ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams paintFeedbackArgs ) : void
sourceShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
targetShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
paintFeedbackArgs global::Microsoft.VisualStudio.Modeling.Diagrams
Résultat void

IsValidSourceAndTarget() public méthode

Called by the base ConnectAction class to ask whether the given source and target are valid.
Always return true here, to give CanCreateConnection a chance to decide.
public IsValidSourceAndTarget ( global::Microsoft.VisualStudio.Modeling.Diagrams sourceShapeElement, global::Microsoft.VisualStudio.Modeling.Diagrams targetShapeElement ) : bool
sourceShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
targetShapeElement global::Microsoft.VisualStudio.Modeling.Diagrams
Résultat bool

ViewLinkConnectionTypeBase() protected méthode

Constructs a new the ViewLinkConnectionType with the given ConnectionBuilder.