protected void OnStepDone() { Task.Run(() => { var stepDoneArgs = new StepDoneArgs() { TopologyIndex = IndexToRunForEachNodeCount }; StepDone?.Invoke(this, stepDoneArgs); }); }
protected void OnStepDone(EventArgs e) { LastStepDoneArgs = new StepDoneArgs() { GraphIndex = GraphTypes.IndexOf(CurrentGraphType), NodeCountIndex = IndexToIncreaseNodeCount, AlgorithmIndex = AlgorithmTypes.IndexOf(CurrentAlgorithmType), TopologyIndex = ((StepDoneArgs)e).TopologyIndex, GraphType = CurrentGraphType, NodeCount = NodeCount, AlgorithmType = CurrentAlgorithmType, NumberToIncreaseNodeCount = NumberToIncreaseNodeCount, AlgorithmCount = AlgorithmTypes.Count(), TopologyCount = TopologyCount }; StepDone?.Invoke(this, LastStepDoneArgs); }