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