Exemplo n.º 1
0
 /// <summary>
 /// Sets the settings.
 /// </summary>
 /// <param name="settings">The settings.</param>
 public void SetSettings(List<SettingData> settings)
 {
     try
     {
         var settingsManager = new SettingsManager();
         settingsManager.SetSettings(settings);
     }
     catch (Exception ex)
     {
         return;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the settings.
 /// </summary>
 /// <returns>Return the list of settings</returns>
 public List<SettingData> GetSettings()
 {
     try
     {
         var settingsManager = new SettingsManager();
         return settingsManager.GetSettings();
     }
     catch (Exception ex)
     {
         return new List<SettingData>();
     }
 }