コード例 #1
0
 /// <summary>
 /// Will be called when a context menu of a sub entry has been generated. This implementation adds the standard menu entries for selected objects.
 /// </summary>
 /// <param name="sender">The ControlCenter entry that has its context menu created</param>
 /// <param name="toManipulate">The context menu, which may be manipulated</param>
 protected void OnCreateSubContextMenue(IGeoObjectShowProperty sender, List <MenuWithHandler> toManipulate)
 {
     ContextMenuSource = sender.GetGeoObject();
     toManipulate.Add(MenuWithHandler.Separator);
     toManipulate.AddRange(MenuResource.LoadMenuDefinition("MenuId.SelectedObject", false, Frame.CommandHandler));
 }
コード例 #2
0
 void OnCreateContextMenueChild(IGeoObjectShowProperty sender, List <MenuWithHandler> toManipulate)
 {
     ContextMenuSource = sender.GetGeoObject();
     MenuWithHandler[] toAdd = MenuResource.LoadMenuDefinition("MenuId.SelectedObject", false, Frame.CommandHandler);
     toManipulate.AddRange(toAdd);
 }