private bool OnIterationComplete(GeneScore score, int iterationCount, int iterationsRemaining) { if (IterationComplete != null) { var args = new IterationCompleteEventArgs(score, iterationCount, iterationsRemaining); IterationComplete(this, args); return(args.Stop); } return(false); }
public IterationCompleteEventArgs(GeneScore score, int iterationNumber, int iterationsRemaining) { _score = score; _iterationNumber = iterationNumber; _iterationsRemaining = iterationsRemaining; }