internal static IStatusBar CreateStatusBar(object bar, PluginIdentity identity) { var menuIndex = new MenuIndex(MenuIndexType.StatusBar); var statusBar = new StatusBar(bar, menuIndex, identity); return(statusBar); }
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(); }
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); }
internal MainSyncfusionMenu(object menuManager, MenuIndex menuIndex) : base(menuManager, menuIndex) { }
internal static IToolbarCollectionEx CreateToolbars(object menuManager) { var menuIndex = new MenuIndex(MenuIndexType.Toolbar, false); return(new ToolbarCollection(menuManager, menuIndex)); }
internal static IToolbarCollection CreateMainToolbars(object menuManager) { var menuIndex = new MenuIndex(MenuIndexType.Toolbar); return(new ToolbarCollectionMain(menuManager, menuIndex)); }
internal static IMenuEx CreateMenu(object menuManager) { var menuIndex = new MenuIndex(MenuIndexType.MainMenu, false); return(new MenuStripMenu(menuManager, menuIndex)); }