private void Startbutton_Click(object sender, EventArgs e) { Semaforotimer.Start(); SemaforopictureBox.Image = Properties.Resources.SemaforoVerde; Startbutton.Enabled = false; Stopbutton.Enabled = true; ShutDownbutton.Enabled = true; }
private void Stopbutton_Click(object sender, EventArgs e) { if (Stopbutton.Text == "Stop") { Semaforotimer.Stop(); Stopbutton.Text = "Continue"; } else { Semaforotimer.Start(); Stopbutton.Text = "Stop"; } }