I am looking at incorporating the Nevron diagram tool to model a process in our software. I need to validate the diagram as the user creates it. When a line is inserted using the connection tool how can I check if it is connected at both ends and what it is connected to? I have used the EventSinkService to get notified that a shape has been added and I can cast it to an NLineShape but I don't know how to check what it is connected to.
I thought about the Connected and Connecting events but they only fire when something is actually connected and only tell you about each end of the connection independantly. Also, if a user just drags a connection on the diagram and doesn't connect it to anything you don't get these events.
Thanks for your help,
Jeremy.