Пример #1
0
        internal static IStatusBar CreateStatusBar(object bar, PluginIdentity identity)
        {
            var menuIndex = new MenuIndex(MenuIndexType.StatusBar);
            var statusBar = new StatusBar(bar, menuIndex, identity);

            return(statusBar);
        }
Пример #2
0
        internal SyncfusionMenu(object menuManager, MenuIndex menuIndex)
        {
            _menuIndex   = menuIndex;
            _menuManager = menuManager as MainFrameBarManager;

            if (menuIndex == null)
            {
                throw new ArgumentNullException("menuIndex");
            }
            if (_menuManager == null)
            {
                throw new ApplicationException("Invalid type of menu manager");
            }

            CreateMenuBar();
        }
Пример #3
0
        internal static IMenu CreateMainMenu(object menuManager, bool usingRibbon)
        {
            _usingRibbon = usingRibbon;
            if (_instance == null)
            {
                var menuIndex = new MenuIndex(MenuIndexType.MainMenu);


                if (DebugHelper.SyncfusionMenu)
                {
                    _instance = new MainSyncfusionMenu(menuManager, menuIndex);
                }
                else
                {
                    _instance = new MainMenuStripMenu(menuManager, menuIndex);
                }
            }
            CreateDefaultMenuItems(_instance);
            return(_instance);
        }
Пример #4
0
 internal MainSyncfusionMenu(object menuManager, MenuIndex menuIndex)
     : base(menuManager, menuIndex)
 {
 }
Пример #5
0
        internal static IToolbarCollectionEx CreateToolbars(object menuManager)
        {
            var menuIndex = new MenuIndex(MenuIndexType.Toolbar, false);

            return(new ToolbarCollection(menuManager, menuIndex));
        }
Пример #6
0
        internal static IToolbarCollection CreateMainToolbars(object menuManager)
        {
            var menuIndex = new MenuIndex(MenuIndexType.Toolbar);

            return(new ToolbarCollectionMain(menuManager, menuIndex));
        }
Пример #7
0
        internal static IMenuEx CreateMenu(object menuManager)
        {
            var menuIndex = new MenuIndex(MenuIndexType.MainMenu, false);

            return(new MenuStripMenu(menuManager, menuIndex));
        }