button的用法问题
怎么用button来控制timer1_Tick的输出public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int mint = 1;
int scss = 15;
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = string.Empty;
this.timer1.Interval = 1000;
this.timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (mint >= 0)
{
scss--;
if (scss == 0)
{
mint--;
label1.Text = mint.ToString();
scss = 15;
}
label2.Text = scss.ToString();
}
}
private void button1_Click(object sender, EventArgs e)
{
}
}