单击查询按钮 写代码
if (checkBoxTimer.Checked == true)
{
//motortiles.CreateDat是一个方法的值
motortiles.CreateDate = dTimer.Text.Trim();
}
else
{
MessageBox.Show("请选择时间!");
}
if (checkBoxTimer.Checked == true)
{
//motortiles.CreateDat是一个方法的值
motortiles.CreateDate = dTimer.Text.Trim();
}
else
{
MessageBox.Show("请选择时间!");
}
{
checkBoxTimer.Checked = true
}
if (checkBoxTimer.Checked) bool 判断 (不要用 == true)