Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowCharter how to supports multiple documents? (Read 958 times)
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
FlowCharter how to supports multiple documents?
Aug 7th, 2023 at 2:25pm
Print Post  
I wanted to create an application that supports multiple documents, but it was unsuccessful.
Adding "private Diagram diagram1" or "private DiagramView diagramView" to File_2 was unsuccessful.
What should I do?
What is the use of "private Diagram _hidden"?
  

1691418017049.png ( 29 KB | 41 Downloads )
1691418017049.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3328
Joined: Oct 19th, 2005
Re: FlowCharter how to supports multiple documents?
Reply #1 - Aug 7th, 2023 at 3:30pm
Print Post  
I imagine you could keep multiple diagrams in a List<Diagram> collection, add a TabControl above the DiagramView, and switch active DiagramView.Diagram to respective collection element when TabControl's active tab changes.

If these diagrams are related to each other and should be saved together, take a look into DiagramDocument and TabbedDiagramView classes, shown in TabbedView example.

The hidden diagram is used just for custom-drawing the items in the ListBox on the right. You could probably replace that listbox with a NodeListView instance.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: FlowCharter how to supports multiple documents?
Reply #2 - Aug 8th, 2023 at 12:57pm
Print Post  
thx, verymuch
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint