Check for right screen-version.

This commit is contained in:
Florian Küpper committed 2014-09-27 13:13:36 +02:00
1 parent fc432f34eb
commit 7f965e0f9b
1 file changed
+11
+11
View File
@@ -278,6 +278,17 @@ namespace VocaluxeLib.Menu
{
CBase.Log.LogError(e.Message + e.StackTrace, true, true);
}
if (_ScreenVersion != Theme.ScreenInformation.ScreenVersion)
{
string msg = "Can't load screen file of screen \"" + ThemeName + "\", ";
if (Theme.ScreenInformation.ScreenVersion < _ScreenVersion)
msg += "the file ist outdated! ";
else
msg += "the file is for newer program versions! ";
msg += "Current screen version is " + _ScreenVersion;
CBase.Log.LogError(msg);
}
}
public virtual void LoadThemeOld(string xmlPath)