I am having two goViews as goView1 and goView2. Both views have diagrams with different nodes. For instance, goView1 has diagram with boxnodes and goView2 has diagram with subgraphs.
I want to save both diagrams somehow. Is it possible to save the diagrams in a single XML? If yes, is it possible to read it again and draw diagrams on respective views? How to do it?
I have read about initializing XMLreaderwriter. Surely for both views there should be separate XMLreaderwriter as there are different nodes involved in both the goviews. Currently I can read and write one goView1. I want to do same for both views.
I want to save both diagrams on the goViews and open again as it is from XML. Is there any other way to do it? How can it be done in GoDiagram?
Thank you very much.
While binding subgraph, do I need to create separate prototype element for Ports as well. I have done some binding subgraph. It can write and read subgraphs without ports properly.
Do i need to add something for ports of the subgraphs with ports. Following code for subgraph.
CutomisedSubgraph sg = new CutomisedSubgraph();
sg.Port = new CustomisedPort();
It is not creating link and ports after reading XML. It just create subgraph without ports.
If I copy subgraph and paste it, it copies all ports with it. It means I do not have to add anything in copychildfren method of the subgraph. What could be the problem?
My application can write XML of diagram containing subgraphs. XML contains link information, it means it is writing XML properly. But while reading it just reads subgraph(with labels on it, its child subgraphs i.e. subgraphs inside subgraph) but without ports and links.
Could you please tell me what could be the reason?