Example #1
0
        private void SetupDefaultLayout()
        {
            dockPanel.SuspendLayout(true);

            filesystemPanel.Show(dockPanel, DockState.DockLeft);
            functionsPanel.Show(filesystemPanel.Pane, filesystemPanel);

            breakpointsPanel.Show(dockPanel, DockState.DockBottom);
            callstackPanel.Show(breakpointsPanel.Pane, breakpointsPanel);

            modulesPanel.Show(breakpointsPanel.Pane, DockAlignment.Right, 0.5);
            threadsPanel.Show(modulesPanel.Pane, modulesPanel);

            registersPanels[registersPanels.Count - 1].Show(filesystemPanel.Pane,
                                                            DockAlignment.Right, 0.5);
            for (int i = registersPanels.Count - 2; i >= 0; --i)
            {
                registersPanels[i].Show(registersPanels[i + 1].Pane, registersPanels[i + 1]);
            }

            foreach (var codeDocument in codeDocuments)
            {
                codeDocument.Show(dockPanel, DockState.Document);
            }

            heapDocument.Show(codeDocuments[0].Pane, DockAlignment.Right, 0.5);
            for (int i = 0; i < memoryDocuments.Count; ++i)
            {
                memoryDocuments[i].Show(heapDocument.Pane, heapDocument);
            }

            tracePanel.Show(heapDocument.Pane, DockAlignment.Bottom, 0.5);
            statisticsDocument.Show(tracePanel.Pane, tracePanel);

            dockPanel.ResumeLayout(true, true);
        }