8,834
社区成员
发帖
与我相关
我的任务
分享
private void checkBox9_CheckedChanged(object sender, EventArgs e)
{
CheckBox checkBox = sender as CheckBox;
if (checkBox.Checked)
{
this.dateTimePicker25.Enabled = false;
this.timer1.Start();
}
else
{
this.dateTimePicker25.Enabled = true;
this.timer1.Stop();
}
}
private void timer1_Tick(object sender, EventArgs e)
{
this.dateTimePicker25.Value = DateTime.Now;
}