public DebugPanel() { InitializeComponent(); UpdateButtonsTooltips(); locals = new LocalsPanel(); callstack = new CallStackPanel(); watch = new WatchPanel(); threads = new ThreadsPanel(); modules = new ModulesPanel(); breakpoints = new BreakpointsPanel(); tabControl1.AddTab("Locals", locals); tabControl1.AddTab("Call Stack", callstack); tabControl1.AddTab("Watch", watch); tabControl1.AddTab("Threads", threads); tabControl1.AddTab("Modules", modules); tabControl1.AddTab("Breakpoints", breakpoints); try { tabControl1.SelectedIndex = Config.Instance.DebugPanelInitialTab; } catch { } this.VisibleChanged += (s, e) => { if (!Visible) { Config.Instance.DebugPanelInitialTab = tabControl1.SelectedIndex; Config.Instance.Save(); } }; if (Debugger.DebugAsConsole) { appTypeCombo.SelectedIndex = 0; } else { appTypeCombo.SelectedIndex = 1; } Debugger.OnDebuggerStateChanged += UpdateControlsState; appTypeCombo.Width = 80; RefreshBreakOnException(); UpdateControlsState(); }
private void CreatePanels() { quickSearchPanel = new QuickSearchPanel(); informationPanel = new InformationPanel(); outputPanel = new DebugOutputPanel(); callStackPanel = new CallStackPanel(); logMessagePanel = new InformationPanel(); localVariablesPanel = new ObjectsPanel(); argumentsPanel = new ObjectsPanel(); watchPanel = new ObjectsPanel(); autoObjectsPanel = new ObjectsPanel(); breakpointsPanel = new BreakpointsPanel(); threadsPanel = new ThreadsPanel(); modulesPanel = new ModulesPanel(); }