Exemplo n.º 1
0
 /// <summary>
 /// Clears the current settings, including registered <see cref="SettingsKey"/> and <see cref="SettingsProfile"/> instances. This method should be used only for tests.
 /// </summary>
 public void ClearSettings()
 {
     CurrentProfile = defaultProfile;
     CurrentProfile.ValidateSettingsChanges();
     profileList.Clear();
     defaultProfile.Settings.Clear();
     settingsKeys.Clear();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Clears the current settings, including registered <see cref="SettingsKey"/> and <see cref="SettingsProfile"/> instances. This method should be used only for tests.
 /// </summary>
 public static void ClearSettings()
 {
     CurrentProfile = DefaultProfile;
     CurrentProfile.ValidateSettingsChanges();
     ProfileList.Clear();
     DefaultProfile.Settings.Clear();
     SettingsKeys.Clear();
 }