Пример #1
0
        private Workbench()
        {
            InitializeComponent();

            _toolstrips       = new Dictionary <string, ToolStrip>();
            _toolstripRegions = new Dictionary <string, ToolbarRegion>();

            this.Icon = ResourceService.GetIcon("FdoToolbox");

            contentPanel = new DockPanel();
            contentPanel.DocumentStyle     = DocumentStyle.DockingWindow;
            contentPanel.Dock              = DockStyle.Fill;
            contentPanel.DockLeftPortion   = 200;
            contentPanel.DockBottomPortion = 150;
            contentPanel.DockRightPortion  = 200;

            menu = new MenuStrip();
            MenuService.AddItemsToMenu(menu.Items, this, "/Workbench/MainMenu");

            toolStripContainer = new ToolStripContainer();
            toolStripContainer.ContentPanel.Controls.Add(contentPanel);
            toolStripContainer.Dock = DockStyle.Fill;

            this.Controls.Add(toolStripContainer);

            ctxToolbar = new ContextMenuStrip();
            toolStripContainer.TopToolStripPanel.ContextMenuStrip    = ctxToolbar;
            toolStripContainer.BottomToolStripPanel.ContextMenuStrip = ctxToolbar;
            toolStripContainer.LeftToolStripPanel.ContextMenuStrip   = ctxToolbar;
            toolStripContainer.RightToolStripPanel.ContextMenuStrip  = ctxToolbar;

            toolbar = ToolbarService.CreateToolStrip(this, "/Workbench/Toolbar");
            AddToolbar("Base", toolbar, ToolbarRegion.Top, false);

            status      = new StatusStrip();
            statusLabel = new ToolStripStatusLabel();
            status.Items.Add(statusLabel);

            this.Controls.Add(menu);
            this.Controls.Add(status);

            //this.IsMdiContainer = true;

            ObjectExplorer exp = new ObjectExplorer();

            objExplorer = exp;

            ConsolePane console = new ConsolePane();

            appConsole = console;

            ShowContent(console, ViewRegion.Bottom);
            ShowContent(exp, ViewRegion.Left);

            // Use the Idle event to update the status of menu and toolbar items.
            Application.Idle += OnApplicationIdle;
        }
Пример #2
0
 public static void Initialize(PluginMain main)
 {
     PluginManager.Register(main, Inspector = new InspectorPane(), "Inspector");
     PluginManager.Register(main, Console   = new ConsolePane(main.Conf), "Debug Log");
 }
Пример #3
0
 public static void Initialize(PluginMain main)
 {
     PluginManager.Register(main, Inspector = new InspectorPane(), "Debugger");
     PluginManager.Register(main, Console   = new ConsolePane(main.Conf), "Console");
     PluginManager.Register(main, Errors    = new ErrorPane(), "Exceptions");
 }