private void button2_Click(object sender, EventArgs e) { NeighborhoodMethod neighborhoodMethod = (NeighborhoodMethod)selectLib.SelectedIndex; simulation.StartSimulation(neighborhoodMethod, int.Parse(textBoxK.Text)); timer1.Enabled = true; }
public void StartSimulation(NeighborhoodMethod method, int k) { this.k = k; this.method = method; status = SimulationStatus.Growthing; }