标签:
//按钮操作 private void button2_Click(object sender, EventArgs e) { timer1.Enabled = !timer1.Enabled; button2.Text = timer1.Enabled ? "定时器开刷(开)" : "定时器开刷(关)"; }
代码摘录
原文地址:http://www.cnblogs.com/xiaoa/p/4295357.html