private void buttStop_Click(object sender, EventArgs e) { if (paused) { simulation.ResumeSimulation(); } simulation.StopSimulation(); }
private void buttStop_Click(object sender, EventArgs e) { processStopped = true; simulation.StopSimulation(); }