private void OnDropDownAutoHiddenClicked(object sender, EventArgs e)
{
KryptonContextMenuItem autoHiddenItem = (KryptonContextMenuItem)sender;
string uniqueName = (string)autoHiddenItem.Tag;
// Action depends on the current location
switch (FindPageLocation(uniqueName))
{
case DockingLocation.None:
case DockingLocation.Docked:
case DockingLocation.Floating:
case DockingLocation.Navigator:
case DockingLocation.Workspace:
MakeAutoHiddenRequest(uniqueName);
break;
case DockingLocation.AutoHidden:
// Nothing to do, already auto hidden
break;
}
}