Profile Picture

Document EventSinkServices after loading a diagram

Posted By Wilhelm Vortisch 14 Years Ago
Author
Message
Wilhelm Vortisch
questionmark Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 14, Visits: 1
Hi,

I have a problem with document EventSinkServices after loading a diagram with the "open" command of NDiagramCommandBarsManager.
In my application I have added the following command in the Form_Load function for getting the double click event:

nDrawingDocument1.EventSinkService.NodeDoubleClick += new NodeViewEventHandler(EventSinkService_NodeDoubleClicked);

If I add a shape to the default drawing document, it's all OK.
After I save these diagram to a ndb file and reloads it over the standard NDiagramCommandBarsManager command ("the open icon"), all EventSinkServices releated to the drawing document are "not active".

Where can I enable these EventSinkServices for a new drawing document?

Regards

Wilhelm





Similar Topics


Reading This Topic