public void OnDesligando(object source, InterruptorEventArgs args)
 {
     Thread.Sleep(1000);
     Status = args.Lampada.Status;
 }
 protected virtual void OnDesligandoEventHandler(InterruptorEventArgs e)
 {
     DesligandoEventHandler?.Invoke(this, e);
 }
 private static void Interruptor_DesligandoEventHandler(object sender, InterruptorEventArgs e)
 {
     //throw new NotImplementedException();
 }