Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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();
 }