private static void ClearStringSettings() { ArrayList keysToRemove = new ArrayList(); Dictionary <int, SkinString> .Enumerator strEnumer = _skinStringSettings.GetEnumerator(); SkinString strSetting; while (strEnumer.MoveNext()) { strSetting = strEnumer.Current.Value; if (strSetting.Kind == Kind.PERSISTENT) // Keep transient settings { GUIPropertyManager.RemoveProperty(strSetting.Name); keysToRemove.Add(strEnumer.Current.Key); } } // Clear our dictionary. lock (_skinStringSettings) { foreach (int key in keysToRemove) { _skinStringSettings.Remove(key); } } }
/// <summary> /// Clears all properties identifying themes. /// </summary> public static void ClearSettings() { GUIPropertyManager.RemoveProperty("#skin.currenttheme"); GUIPropertyManager.RemoveProperty("#skin.themes"); }