private void btnStep_Click(object sender, EventArgs e) { tmrTime.Stop(); btnStartStop.Text = Constant.START; Biz.GetAllLife(); Biz.NextGeneration(); }
private void tmrTime_Tick(object sender, EventArgs e) { if (Biz.TimerCount > 0) { Biz.TimerCount--; } else if (Biz.TimerCount == 0) { tmrTime.Stop(); Biz.TimerCount--; picCanvas.Enabled = true; trbSpeed_Scroll(null, null); } else { Biz.NextGeneration(); } }