示例#1
0
        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);

            if (runTimer != null)
            {
                runTimer.Dispose();
                runTimer = null;
            }

            if (simulation != null)
            {
                simulation.Dispose();
                simulation = null;
            }
        }
示例#2
0
 public static void Cleanup(SimulationBase sim)
 {
     sim.Dispose();
 }