Ejemplo n.º 1
0
        private System.Windows.Forms.Keys HotkeyKey = System.Windows.Forms.Keys.K;     //TODO: Config

        #endregion Fields & Properties

        internal SleeperContext()
        {
            Logger.LogInfo("App starting.");
            if (PcManager.IsAppAlreadyRunning())
            {
                return;
            }

            PcManager.TryToInstallThisApp();
            _sleepChecker  = new SleepChecker();
            _wakeUpChecker = new WakeUpChecker(DisplayNotification, ChangeTrayIcon);
            InitializeTrayIcon();
            InitializeHotKeyHook();
        }