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