How do I make a simulation end event? And when it’s over, continue running the program.
IoC.Get().ResetSimulation();
// Default simulation run time is 9999 years
var simulationRunTime = 315328464000; // 6060243659999 (9999 years in second)
IoC.Get().SwitchRunState(speedFactor, 0);
//IoC.Get().SelectionChanged += PluginViewModel_SelectionChanged;
IoC.Get().SpeedFactor = simulationRunTime;
IoC.Get().RunSimulation();
TransportInStatements();