internal void FireCustomSettingsChanged(EventArgs e)
{
this.titleBarHeight = this.TitleBackImageHeight;
// is there an image to display on the titlebar
if (this.titleImage != null)
{
// is the image bigger than the height of the titlebar
if (this.titleImage.Height > this.titleBarHeight)
{
this.headerHeight = this.titleImage.Height;
}
// is the image smaller than the height of the titlebar
else if (this.titleImage.Height < this.titleBarHeight)
{
this.headerHeight = this.titleBarHeight;
}
// is the image smaller than the current header height
else if (this.titleImage.Height < this.headerHeight)
{
this.headerHeight = this.titleImage.Height;
}
}
else
{
this.headerHeight = this.titleBarHeight;
}
if (this.SpecialGroup)
{
if (this.CustomSettings.SpecialBackColor != Color.Empty)
{
this.BackColor = this.CustomSettings.SpecialBackColor;
}
else
{
this.BackColor = this.SystemSettings.Expando.SpecialBackColor;
}
}
else
{
if (this.CustomSettings.NormalBackColor != Color.Empty)
{
this.BackColor = this.CustomSettings.NormalBackColor;
}
else
{
this.BackColor = this.SystemSettings.Expando.NormalBackColor;
}
}
this.DoLayout();
this.Invalidate(true);
this.OnCustomSettingsChanged(e);
}