Exemple #1
0
 /// <summary>
 /// Removes a Graph from the internal list.
 /// (Also used by the editor to close Graphs)
 /// </summary>
 public static void RemoveGraph(Graph g)
 {
     Graphs.Remove(g);
 }
Exemple #2
0
 /// <summary>
 /// Create a controller for the assigned Graph.
 /// </summary>
 private static void CreateGraphController(Graph graph)
 {
     // in this case we create one controller for all graphs
     // you could also create different controllers for different graphs
     //if (_controller == null) _controller = new StandardGraphController();
 }
Exemple #3
0
 /// <summary>
 /// Saves a graph by its path.
 /// (Also used by the editor to save Graphs)
 /// </summary>
 public static void SaveGraph(Graph g, string path)
 {
     Graph.Save(path, g);
 }