protected override void OnClick(EventArgs e)
{
// Only if associated view is enabled to we perform an action
if (GetViewEnabled())
{
if (!_ribbon.InDesignMode)
{
MdiChild.WindowState = FormWindowState.Minimized;
// Let base class fire any other attached events
base.OnClick(e);
}
}
}