示例#1
0
 void CreateToolBars()
 {
     if (ToolBars == null)
     {
         ToolBars = ToolbarService.CreateToolbars(this, "/SharpDevelop/Workbench/ToolBar");
     }
 }
示例#2
0
        void CreateToolBars()
        {
            if (ToolBars == null)
            {
#if ModifiedForAltaxo
                ToolBars = ToolbarService.CreateToolbars(this, toolBarPath);
#else
                ToolBars = ToolbarService.CreateToolbars(this, "/SharpDevelop/Workbench/ToolBar");
#endif
            }
        }
        void CreateToolBars()
        {
            ToolbarService toolBarService = (ToolbarService)ServiceManager.Services.GetService(typeof(ToolbarService));

            ToolBars = null;

            ToolBars = toolBarService.CreateToolbars();

            foreach (Bar toolBar in ToolBars)
            {
                if (dotNetBarManager1.Bars.Contains(toolBar) == false)
                {
                    dotNetBarManager1.Bars.Add(toolBar);
                }
                toolBar.DockSide = eDockSide.Top;
            }
        }