예제 #1
0
파일: Form1.cs 프로젝트: olelit/justForFun
 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();
 }
예제 #2
0
파일: Form1.cs 프로젝트: olelit/justForFun
        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();
        }