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