//按钮操作 private void button2_Click(object sender, EventArgs e) { timer1.Enabled = !timer1.Enabled; button2.Text = timer1.Enabled ? "定时器开刷(开)" : "定时器开刷(关)"; }
时间: 2025-01-15 22:13:08
//按钮操作 private void button2_Click(object sender, EventArgs e) { timer1.Enabled = !timer1.Enabled; button2.Text = timer1.Enabled ? "定时器开刷(开)" : "定时器开刷(关)"; }