Esempio n. 1
0
 /// <summary>
 /// Stops the screen saver
 /// </summary>
 public void DisableScreenSaver()
 {
     WinApi myWinApi = new WinApi();
     myWinApi.ScreenState(-1);
     Launcher.State.IsScreenSaverEnabled = false;
 }
Esempio n. 2
0
 /// <summary>
 /// Starts the screen saver
 /// </summary>
 public void EnableScreenSaver()
 {
     WinApi myWinApi = new WinApi();
     myWinApi.ScreenState(2);
     Launcher.State.IsScreenSaverEnabled = true;
 }