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