Esempio n. 1
0
 /// <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);
     }
 }
Esempio n. 2
0
 /// <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);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Resets the addin to the default configuration.
 /// </summary>
 public void LoadDefaultConfiguration()
 {
     Configuration = SwitchConfigurationManager.CreateDefaultConfiguration();
 }