private void btnStartStop_Click(object sender, EventArgs e) { if (btnStartStop.Text == Constant.START) { if (!isOK) { Biz.RandomSeed(); isOK = true; } Biz.GetAllLife(); tmrTime.Start(); btnStartStop.Text = Constant.STOP; } else { btnStartStop.Text = Constant.START; tmrTime.Stop(); } }
private void btnRndSeed_Click(object sender, EventArgs e) { Biz.RandomSeed(); isOK = true; }