/// <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); }
/// <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); }