I''m using Essencial Diagram to make a GUI that enables people to create some diagram (based on 3 ou 4 symbols I previously defined in the Symbol Designer). This diagrams people create have some semantic rules, but I don''t know how to implement them. For example, I can DragnDrop any symbols from the palette to the Model area. But when I''m going to link them I must assure that some instance of symbol type A (for example) isn''t connected to any instance of a symbol of type B. I don''t know how to do it using Validate event or something like that (I don''t event know how to access the links in the model... I thnik it''s not to clear in the documentation).
ADAdministrator Syncfusion Team June 17, 2004 06:55 PM UTC
Kindly take a look at the code in the MemberSymbol.cs file in the OrgChart sample that ships with Essential Diagram. It has code for AcceptConnection which should give you an idea to do what you are seeking.
However, there was a problem with the AcceptConnection method which has since been fixed. We should have a newer version available for download in Direct-Trac which includes this fix.