internal override KryptonProfessionalKCT GenerateColorTable()
{
if (Environment.OSVersion.Version.Major < 6)
{
// Are visual styles being used in this application?
if (VisualStyleInformation.IsEnabledByUser)
{
// Is a predefined scheme being used?
switch (VisualStyleInformation.ColorScheme)
{
case "NormalColor":
_usingOffice2003 = true;
return new KryptonProfessionalKCT(_colorsB, false, this);
case "HomeStead":
_usingOffice2003 = true;
return new KryptonProfessionalKCT(_colorsG, false, this);
case "Metallic":
_usingOffice2003 = true;
return new KryptonProfessionalKCT(_colorsS, false, this);
}
}
}
// Not using a recognized office 2003 color scheme
_usingOffice2003 = false;
// Not a recognized scheme, so get the base class to generate something
// that looks sensible based on the current system settings
return base.GenerateColorTable();
}