Hello,
I'm performing EF and BL in the AddLink method of ObservableGraphSourceBase and things are working fine. As items/links are added/removed to/from the graph I can easily update my EF and persist.
I'm now adding in some business logic. For example, I have 3 node types, A, B, C, where my BL says that node type A can only be connected to node type B. I'm catching the AddLink and my BL is executed and when I see a link added from A to C this violates rules so I simply do no call base.AddLink(link).
This works, the internal structures are correct, however the UI is left with an orphaned connection. I'm assuming in this case I simply need to force the diagram to redraw and this orphan will be removed. Is that correct and how should I force the redraw?
Thanks,
Mike
I'm performing EF and BL in the AddLink method of ObservableGraphSourceBase and things are working fine. As items/links are added/removed to/from the graph I can easily update my EF and persist.
I'm now adding in some business logic. For example, I have 3 node types, A, B, C, where my BL says that node type A can only be connected to node type B. I'm catching the AddLink and my BL is executed and when I see a link added from A to C this violates rules so I simply do no call base.AddLink(link).
This works, the internal structures are correct, however the UI is left with an orphaned connection. I'm assuming in this case I simply need to force the diagram to redraw and this orphan will be removed. Is that correct and how should I force the redraw?
Thanks,
Mike