Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            NeighborhoodMethod neighborhoodMethod = (NeighborhoodMethod)selectLib.SelectedIndex;

            simulation.StartSimulation(neighborhoodMethod, int.Parse(textBoxK.Text));
            timer1.Enabled = true;
        }
Beispiel #2
0
 public void StartSimulation(NeighborhoodMethod method, int k)
 {
     this.k      = k;
     this.method = method;
     status      = SimulationStatus.Growthing;
 }