public static SkinFile Load(string skinFile) { XmlSerializer serializer = new XmlSerializer(typeof(SkinFile)); SkinFile skin = serializer.Deserialize(new FileStream(skinFile, FileMode.Open, FileAccess.Read)) as SkinFile; return(skin); }
public void ChangeSkin(string skinName) { currentSkin = availableSkins[skinName]; }
public void LoadSkin(string skinFileName) { currentSkin = SkinFile.Load(skinFileName); availableSkins.Add(currentSkin.Name, currentSkin); }