private XPThemeType GetThemeType()
{
string themeName = VisualStyleInformation.ColorScheme.ToUpper();
if (themeName == "NORMALCOLOR")
{
return XPThemeType.NormalColor;
}
if (themeName == "HOMESTEAD")
{
return XPThemeType.Homestead;
}
if (themeName == "METALLIC")
{
return XPThemeType.Metallic;
}
return XPThemeType.Unknown;
}