Пример #1
0
        /// <summary>
        /// Applies the windows settings, such as the 'start on logon'.
        /// </summary>
        public void ApplyWindowsSettings()
        {
            //  Create a startup manager.
            var startupManager = new ApplicationAutoStartupManager();
            startupManager.ApplicationPath = Application.ExecutablePath;

            //  Are we set to start on windows startup?
            if (Settings.StartOnWindowsLogon)
                startupManager.AddToStartupFolder();
            else
                startupManager.RemoveFromStartupFolder();
        }
Пример #2
0
        /// <summary>
        /// Applies the windows settings, such as the 'start on logon'.
        /// </summary>
        public void ApplyWindowsSettings()
        {
            //  Create a startup manager.
            var startupManager = new ApplicationAutoStartupManager();

            startupManager.ApplicationPath = Application.ExecutablePath;

            //  Are we set to start on windows startup?
            if (Settings.StartOnWindowsLogon)
            {
                startupManager.AddToStartupFolder();
            }
            else
            {
                startupManager.RemoveFromStartupFolder();
            }
        }