Esempio n. 1
0
 private void btnStep_Click(object sender, EventArgs e)
 {
     tmrTime.Stop();
     btnStartStop.Text = Constant.START;
     Biz.GetAllLife();
     Biz.NextGeneration();
 }
Esempio n. 2
0
 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();
     }
 }