/// <summary> /// Saves the settings. /// </summary> public void SaveSettings() { // Load in case something changed in the mean time, other page/other VS instance ConfigSvc.LoadConfig(); SaveSettingsCore(); try { ConfigSvc.SaveConfig(Config); } catch (Exception ex) { IAnkhErrorHandler eh = Context.GetService <IAnkhErrorHandler>(); if (eh != null && eh.IsEnabled(ex)) { eh.OnError(ex); return; } throw; } }
/// <summary> /// Loads the settings. /// </summary> public void LoadSettings() { ConfigSvc.LoadConfig(); LoadSettingsCore(); }