private void OnEdgeAdded([NotNull] TEdge edge) { Debug.Assert(edge != null); EdgeAdded?.Invoke(edge); }
/// <summary> /// Called when an <see cref="Edge"/> is added. /// </summary> /// <param name="args">Event arguments.</param> protected virtual void OnEdgeAdded([NotNull] MsaglEdgeEventArgs <TVertex, TEdge> args) { Debug.Assert(args != null); EdgeAdded?.Invoke(this, args); }
/// <summary> /// Called on each added edge. /// </summary> /// <param name="edge">Added edge.</param> protected virtual void OnEdgeAdded([NotNull] TEdge edge) { Debug.Assert(edge != null); EdgeAdded?.Invoke(edge); }
private void GViewer_EdgeAdded(object sender, EventArgs e) { EdgeAdded?.Invoke(this, new EdgeEventArgs(sender as Edge)); }