Try it for background.

This commit is contained in:
Florian Küpper committed 2014-08-26 09:29:39 +02:00
1 parent 6b958527ce
commit 4bbb0bfb14
2 files changed
+27 -7

No files matched your search

+10 -2
View File
@@ -270,14 +270,22 @@ namespace VocaluxeLib.Menu
}
//This is only test-stuff and will be removed later
XmlSerializer serializer = new XmlSerializer(typeof(List<SThemeStatic>));
TextWriter textWriter = new StreamWriter(@Path.Combine(_ThemePath, ThemeName + "_test.xml"));
//Backgrounds
XmlSerializer serializer = new XmlSerializer(typeof(List<SThemeBackground>));
List<SThemeBackground> backgroundThemes = new List<SThemeBackground>();
foreach (CBackground bg in _Backgrounds)
backgroundThemes.Add(bg.GetTheme());
serializer.Serialize(textWriter, backgroundThemes);
//Statics
serializer = new XmlSerializer(typeof(List<SThemeStatic>));
List<SThemeStatic> staticsThemes = new List<SThemeStatic>();
foreach (CStatic st in _Statics)
staticsThemes.Add(st.GetTheme());
serializer.Serialize(textWriter, staticsThemes);
textWriter.Close();
}