private void OnEnabled(object sender, EventArgs e)
{
if ((_ribbonComboBox != null) && (_ribbonComboBox.Ribbon != null))
{
PropertyDescriptor propertyEnabled = TypeDescriptor.GetProperties(_ribbonComboBox)["Enabled"];
bool oldValue = (bool)propertyEnabled.GetValue(_ribbonComboBox);
bool newValue = !oldValue;
_changeService.OnComponentChanged(_ribbonComboBox, null, oldValue, newValue);
propertyEnabled.SetValue(_ribbonComboBox, newValue);
}
}