MapSuiteGisEditor/GisEditorInfrastructure/Managers/UIPluginManager/UIPluginManager.cs
/// <summary>
/// Gets the map context menu items core.
/// </summary>
/// <param name="contextMenuArugments">The context menu arugments.</param>
/// <returns></returns>
Gets the map context menu items core.
Gets the map context menu items core .
protected virtual Collection<MenuItem> GetMapContextMenuItemsCore(GetMapContextMenuParameters contextMenuArugments)
        {
            Collection<MenuItem> resultMenuItems = new Collection<MenuItem>();
            foreach (var uiPlugin in GetActiveUIPlugins().Reverse())
            {
                var menuItems = uiPlugin.GetMapContextMenuItems(contextMenuArugments);
                if (menuItems.Count > 0)
                {
                    resultMenuItems.Add(new MenuItem() { Header = "--" });
                    foreach (var menuItem in menuItems.Reverse())
                    {
                        resultMenuItems.Add(menuItem);
                    }
                }
            }
            GottenMapContextMenuItemsUIPluginManagerEventArgs e = new GottenMapContextMenuItemsUIPluginManagerEventArgs(resultMenuItems);
            OnGottenMapContextMenuItems(e);
            return e.MenuItems;
        }
protected virtual Collection < MenuItem > GetMapContextMenuItemsCore ( GetMapContextMenuParameters contextMenuArugments ) { Collection < MenuItem > resultMenuItems = new Collection < MenuItem > ( ) ; foreach ( var uiPlugin in GetActiveUIPlugins ( ) . Reverse ( ) ) { var menuItems = uiPlugin . GetMapContextMenuItems ( contextMenuArugments ) ; if ( menuItems . Count > 0 ) { resultMenuItems . Add ( new MenuItem ( ) { Header = " " } ) ; foreach ( var menuItem in menuItems . Reverse ( ) ) { resultMenuItems . Add ( menuItem ) ; } } } GottenMapContextMenuItemsUIPluginManagerEventArgs e = new GottenMapContextMenuItemsUIPluginManagerEventArgs ( resultMenuItems ) ; OnGottenMapContextMenuItems ( e ) ; return e . MenuItems ; }
Gets the map context menu items core.
Gets the map context menu items core .
None
contextMenuArugments
GetMapContextMenuParameters
The context menu arugments.
The context menu arugments .