/// <summary> /// Loads the configuration. /// </summary> public void LoadConfiguration() { try { Configuration = SwitchConfigurationManager.LoadConfiguration(); } catch (Exception exception) { HandleException(@"Failed to load the configuration for the Switch addin.", exception); } }
/// <summary> /// Saves the configuration. /// </summary> public void SaveConfiguration() { // Create the file. try { SwitchConfigurationManager.SaveConfiguration(Configuration); } catch (Exception exception) { HandleException(@"Failed to load the configuration for the Switch addin.", exception); } }
/// <summary> /// Resets the addin to the default configuration. /// </summary> public void LoadDefaultConfiguration() { Configuration = SwitchConfigurationManager.CreateDefaultConfiguration(); }