private void ApplyConfigurationChanges()
{
string skinFile = GUIGraphicsContext.Skin + @"\MyFilms.xml";
string style = btnStyle.Selected ? "default" : "noinfo";
// Set <import> paths
AvalonHelper.SetSkinImport(skinFile, "Background", string.Format("MyFilms.background.{0}.xml", style));
AvalonHelper.SetSkinImport(skinFile, "Views", string.Format("MyFilms.views.{0}.xml", style));
AvalonHelper.SetSkinImport(skinFile, "Facade", string.Format("MyFilms.facade.{0}.xml", style));
AvalonHelper.SetSkinImport(skinFile, "Mediainfo", string.Format("MyFilms.mediainfo.{0}.xml", style));
//Log.Info(skinFile);
switch (ThumbViewMod)
{
case Views.Default:
AvalonHelper.SetSkinImport(skinFile, "Background", string.Format("MyFilms.background.{0}.xml", style));
AvalonHelper.SetSkinImport(skinFile, "Facade", string.Format("MyFilms.facade.{0}.xml", style));
break;
case Views.ThumbsNoFanart:
AvalonHelper.SetSkinImport(skinFile, "Background", string.Format("MyFilms.background.{0}.thumbs.nofanart.xml", style));
AvalonHelper.SetSkinImport(skinFile, "Facade", string.Format("MyFilms.facade.{0}.thumbs.nofanart.xml", style));
break;
case Views.ThumbsXL:
AvalonHelper.SetSkinImport(skinFile, "Background", string.Format("MyFilms.background.{0}.thumbs.XL.xml", style));
AvalonHelper.SetSkinImport(skinFile, "Facade", string.Format("MyFilms.facade.{0}.thumbs.XL.xml", style));
break;
}
}