private void button_auto_Click(object sender, EventArgs e) { Timer_Enable = !Timer_Enable; if (Timer_Enable) { T_auto.Start(); button_auto.Text = "stop"; } else { button_auto.Text = "auto"; T_auto.Stop(); } }