private void addonDescriptionUseDefaultFontCheckBox_CheckedChanged(object sender, EventArgs e)
{
int allowedLength = Addon.addonDescriptionDef[2] - 1 - (addonDescriptionUseDefaultFontCheckBox.Checked ? 52 : 0);
detailsAddonDescriptionMaxLabel.Text = String.Format("Description: (supports html, max {0} chars)", allowedLength);
detailsAddonDescriptionEditor.MaxLength = allowedLength;
if (detailsAddonDescriptionEditor.Text.Length > allowedLength)
detailsAddonDescriptionEditor.Text = detailsAddonDescriptionEditor.Text.Substring(0, allowedLength);
}