protected override void OnClosed(EventArgs e) { base.OnClosed(e); if (runTimer != null) { runTimer.Dispose(); runTimer = null; } if (simulation != null) { simulation.Dispose(); simulation = null; } }
public static void Cleanup(SimulationBase sim) { sim.Dispose(); }