Exemplo n.º 1
0
 private void OnButton_Click(object sender, RoutedEventArgs e)
 {
     if (device.IsOutputOn())
     {
         device.TurnOffLoad();
         onButton.Content = "On";
     }
     else
     {
         onButton.Content = "Off";
         device.TurnOnLoad();
     }
 }