private void button1_Click(object sender, EventArgs e) { Iteration = 0; _Grid = new Grid(pictureBox1.Width, pictureBox1.Height); Settings.Settings.GridSeedCount = (int)numericUpDown1.Value; _Grid.Seed(); }
public Form1() { InitializeComponent(); _Grid = new Grid(pictureBox1.Width, pictureBox1.Height); numericUpDown1.Value = Settings.Settings.GridSeedCount; RefreshSetting(); _Grid.Seed(); Iteration = 0; trackBar1.Value = timer1.Interval; speed.Text = trackBar1.Value.ToString(); }