Beispiel #1
0
 private void SetPowerState(PowerState state)
 {
     try
     {
         if (state != _powerState)
         {
             _powerService.SetPowerState(state);
             _powerState = state;
         }
     }
     catch (Exception ex)
     {
         _dialogService.ShowError(ex);
     }
 }