Ejemplo n.º 1
0
        private void OnEdgeAdded([NotNull] TEdge edge)
        {
            Debug.Assert(edge != null);

            EdgeAdded?.Invoke(edge);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
 private void GViewer_EdgeAdded(object sender, EventArgs e)
 {
     EdgeAdded?.Invoke(this, new EdgeEventArgs(sender as Edge));
 }