Example #1
0
 /// <summary>
 /// Handles the EdgeAdded event of the MainGraph control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The event arguments instance containing the event data.</param>
 private void MainGraph_EdgeAdded(object sender, GraphChangeEventArgs <TEdge> e)
 {
     HandleEdgeAddedToMainGraph(e.InvolvedElement);
 }
Example #2
0
 /// <summary>
 /// Handles the VertexAdded event of the MainGraph control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The event arguments instance containing the event data.</param>
 private void MainGraph_VertexAdded(object sender, GraphChangeEventArgs <TVertex> e)
 {
     HandleVertexAddedToMainGraph(e.InvolvedElement);
 }
Example #3
0
 /// <summary>
 /// Handles the EdgeRemoved event of the MainGraph control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The event arguments instance containing the event data.</param>
 private void MainGraph_EdgeRemoved(object sender, GraphChangeEventArgs <TEdge> e)
 {
     Remove(e.InvolvedElement);
     HandleEdgeRemovedFromMainGraph(e.InvolvedElement);
 }
Example #4
0
 /// <summary>
 /// Handles the VertexRemoved event of the MainGraph control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The event arguments instance containing the event data.</param>
 private void MainGraph_VertexRemoved(object sender, GraphChangeEventArgs <TVertex> e)
 {
     Remove(e.InvolvedElement);
     HandleVertexRemovedFromMainGraph(e.InvolvedElement);
 }