I have made the Graph class, and i want to simulate a distribution network.
The Graph works 100%. But, i want to use that same struct/class in all my application!
For example:
I have Form1 that shows the simulation, but i want to insert Nodes (for example) but i want to do it in Form2!
Since the data is always in the same class, i could make my Graph instance global but C# does not take global variables. So, how would i solve this? Any ideas? Thank you!
I have made the Graph class, and i want to simulate a distribution network.
Share
Give the forms a reference to the Graph in their constructor.
Then both forms are working with the same graph.