private void mainFormSpecChanged(object sender, SpecEventArgs e)
        {
            _runner.DisableSimulation();

            _spec.NextGenerationEnded -= specNextGeneration;
            _spec.TickEnded -= specTickEnded;
            setupSpec(e.Spec);

            _runner.UpdateSpecification(_spec);

            _mainForm.Invoke((MethodInvoker)delegate { _mainForm.UpdateDisplaySettings(_settings); });
        }
        private void mainFormSpecChanged(object sender, SpecEventArgs e)
        {
            _runner.DisableSimulation();

            _spec.NextGenerationEnded -= specNextGeneration;
            _spec.TickEnded           -= specTickEnded;
            setupSpec(e.Spec);

            _runner.UpdateSpecification(_spec);

            _mainForm.Invoke((MethodInvoker) delegate { _mainForm.UpdateDisplaySettings(_settings); });
        }