示例#1
0
 private void bntStart_Click(object sender, EventArgs e)
 {
     if (bntStart.Text == "START")
     {
         bntStart.Text = "PAUSE";
         Startwatch.Start();
         watch.Start();
     }
     else
     {
         bntStart.Text = "START";
         Startwatch.Stop();
         watch.Stop();
     }
 }