private void ActivateOrDeactivateUDFGeneration(object sender, RibbonControlEventArgs e) { try { ThisAddIn.SetSetting("GenerateUDFAtStartup", "" + generateUDFAtStartupButton.Checked); Log.DebugFormat("User defined functions generation at startup set to {0}", generateUDFAtStartupButton.Checked); } catch (ConfigurationErrorsException ex) { Log.Error("Unable to update configuration.", ex); } }
private void ActivateOrDeactivateAutoUpdate(object sender, RibbonControlEventArgs e) { try { ThisAddIn.SetSetting("AutoCheckForUpdates", "" + autoUpdateButton.Checked); Log.DebugFormat("Auto check for update set to {0}", autoUpdateButton.Checked); } catch (ConfigurationErrorsException ex) { Log.Error("Unable to update configuration.", ex); } }