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