Example #1
0
        /// <summary>
        /// 执行更改并保存配置
        /// </summary>
        private void AcceptSetting(SettingInfo newSet)
        {
            if (newSet.Boot)
                MyWork.startExePath.CheckRegRun();
            else
                RegWork.DelRegRun();

            if (newSet.SysRightMenu)
                MyWork.startExePath.AddRegMenu();
            else
                RegWork.DelRegMenu();
            //hotkey

            newSet.SaveToConfig(MyWork.ConfigPath);
        }
Example #2
0
        /// <summary>
        /// 执行更改并保存配置
        /// </summary>
        private void AcceptSetting(SettingInfo newSet)
        {
            if (newSet.Boot)
            {
                MyWork.startExePath.CheckRegRun();
            }
            else
            {
                RegWork.DelRegRun();
            }

            if (newSet.SysRightMenu)
            {
                MyWork.startExePath.AddRegMenu();
            }
            else
            {
                RegWork.DelRegMenu();
            }
            //hotkey

            newSet.SaveToConfig(MyWork.ConfigPath);
        }