Hi there,
I'm trying to implement similar functionality to Jake.
It looks as though the example you give is simply serializing all the object information to the DB. However, I need to contruct this callflow in memory in another program. In order to this I'd like to only store the type of node I've added to the diagram as well as all the links connecting nodes. I don't need information about where the nodes are located on the diagram.
I can loop through all the nodes and links like in the exmaple:
foreach (Node curNode in dg.Controller.SelectionList)
{
...
}
However I'm unsure as to how when I get to a link I'm supposed to determine which nodes it connects to.
Any guidance would be appreciated. (using version 5.1)
Dan
>
Hello Jake,
Thank you for evaluating the Essential Diagram.
I have created a sample that shows how to save a selected node into the DB and attached the same with this post. You can get the sample from the following link -
http://websamples.syncfusion.com/samples/Diagram.Windows/F61793/main.htmSample Details :
1. Clicking the SaveData toolbar button will save the first node in the selection list into the DB.
2. Clicking the LoadData toolbar button will load the node saved in step1 and add it to the diagram model.
FYI - If your intension is to save the entire diagram , you can achieve this by using the diagram.SaveSoap/SaveBinary and diagram.LoadSoap/LoadBinary method instead of diagram.Model.AppendChild() method.
Please look into the sample and let me know if you have any questions regarding this.
Thanks,
Meera.