Beispiel #1
0
 /// <summary>
 /// Removes a Graph from the internal list.
 ///<param name="triggerEvent">Optional. For internal usage.</param>
 /// </summary>
 public void RemoveGraph(Graph.Graph g, bool triggerEvent = true)
 {
     _graphs.Remove(g);
     if (triggerEvent)
     {
         EventManager.TriggerOnGraphRemoved(g);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Adds the graph to the launcher.
 ///</summary>
 ///<param name="graph">The graph to add.</param>
 ///<param name="triggerEvent">Optional. For internal usage.</param>
 public void AddGraph(Graph.Graph graph, bool triggerEvent = true)
 {
     if (graph != null)
     {
         _graphs.Add(graph);
         if (triggerEvent)
         {
             EventManager.TriggerOnGraphAdded(graph);
         }
     }
 }
Beispiel #3
0
 /// <summary>
 /// Saves a graph by its path.
 /// </summary>
 public void SaveGraph(Graph.Graph g, string path)
 {
     g.OriginFile = path;
     Graph.Graph.Save(path, g);
 }
Beispiel #4
0
 /// <summary>
 /// Create a controller for the assigned Graph.
 /// </summary>
 private void CreateGraphController(Graph.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();
 }