Beispiel #1
0
 public void ToggleSleep()
 {
     if (!isOn)
     {
         return;
     }
     sleepController.ToggleSleep();
 }
Beispiel #2
0
 public void ToggleSleep()
 {
     if (!isSleeping)
     {
         return;
     }
     sleepControl.ToggleSleep();
 }
 public void ToggleSleep()
 {
     // Desktops cannot be put to sleep unless they're on.
     if (!IsOn)
     {
         return;
     }
     SleepControler.ToggleSleep();
 }
Beispiel #4
0
 public void ToggleSleep()
 {
     sleepController.ToggleSleep();
 }
 public void ToggleSleep() => SleepController.ToggleSleep();