/// <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); } }
/// <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); } } }
/// <summary> /// Saves a graph by its path. /// </summary> public void SaveGraph(Graph.Graph g, string path) { g.OriginFile = path; Graph.Graph.Save(path, g); }
/// <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(); }