AD
Administrator
Syncfusion Team
November 11, 2005 05:19 PM UTC
Hi Leo,
The ConnectionsChanging/ConnectionsChangeComplete events will be fired twice when creating a link - once each for the connection at each end of the link. To determine the identity of the ports(and their host symbols) that the link is connecting to, you will have to handle the event when it generated the second time around, as the first occurence of the event will provide you with access to only the ports involved in the first connection. An easy way to determine whether the event is being fired for the first or second connection is by accessing the link, and examining whether the Link.FromNode and Link.ToNode properties are both valid.
The following Essential Diagram KB article shows how to use the ConnectionsChangeComplete event to examine the symbols on either end of a link, and to remove the link if the connection is not required - http://www.syncfusion.com/support/kb/diagram/Default.aspx?ToDo=view&questId=34.
I hope this helps.
Thanks,
Prakash Surendra
Syncfusion Inc.,
LR
Leo Rabinovich
November 18, 2005 01:32 AM UTC
Thanks Prakash for your reply. I''ll try your suggestion as soon as I get a chance.