Exemplo n.º 1
0
 public LauncherController()
 {
     this.Settings = new SettingsController();
     this.Pool = new PoolController(this);
     this.Forms = new FormController(this);
     this.Runspace = new RunspaceController(this);
     this.Devices = new DeviceController(this);
     this.Log = new LogConroller();
     this.State = new StateController();
     this.WinApi = new WinApi();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Stops the screen saver
 /// </summary>
 public void DisableScreenSaver()
 {
     WinApi myWinApi = new WinApi();
     myWinApi.ScreenState(-1);
     Launcher.State.IsScreenSaverEnabled = false;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Starts the screen saver
 /// </summary>
 public void EnableScreenSaver()
 {
     WinApi myWinApi = new WinApi();
     myWinApi.ScreenState(2);
     Launcher.State.IsScreenSaverEnabled = true;
 }