Esempio n. 1
0
 private void StopEvolution(WorldForm form)
 {
     if (runner != null)
     {
         runner.Stop();
         runner.UpdateEvent -= form.Runner_UpdateEvent;
         runner              = null;
     }
 }
Esempio n. 2
0
 internal void SetRunner(EvolutionRunner runner)
 {
     Runner = runner;
     DrawBackground();
 }
Esempio n. 3
0
 private void RunEvolution(WorldForm form)
 {
     runner              = new EvolutionRunner(dbContext, mutantManager, form.EvolverSettings);
     runner.UpdateEvent += form.Runner_UpdateEvent;
     runner.Run();
 }