/// <summary> /// Called when a layout iteration has ended. /// </summary> /// <param name="args">Event arguments.</param> protected virtual void OnIterationEnded([NotNull] ILayoutIterationEventArgs <TVertex> args) { Debug.Assert(args != null); RaiseIterationEnded(args); // If the layout should be aborted if (args.Abort) { Abort(); } }
private void kka_IterationEnded(object sender, ILayoutIterationEventArgs<FlockVertex> e) { Worker.ReportProgress(Convert.ToInt32(Math.Round(e.StatusInPercent * 100))); }
internal virtual void RaiseIterationEnded([NotNull] ILayoutIterationEventArgs <TVertex> args) { IterationEnded?.Invoke(this, args); }