/// <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); }
/// <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); }
/// <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); }
/// <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); }