public Form1() { InitializeComponent(); this.FormClosing += new FormClosingEventHandler(Form1_FormClosing); this.FormClosed += new FormClosedEventHandler(Form1_FormClosed); this.MdiChildActivate += new EventHandler(Form1_MdiChildActivate); m_solutionExplorer = new DummySolutionExplorer(solution); m_outputWindow.Show(dockPanel, DockState.DockBottom); m_solutionExplorer.Show(dockPanel, DockState.DockLeft); m_solutionExplorer.SelectedFile += new DummySolutionExplorer.SelectedFileEventHandler(m_solutionExplorer_SelectedFile); updatemru(); if (Properties.Settings.Default.WindowSize != null) { this.Size = Properties.Settings.Default.WindowSize; } if (Properties.Settings.Default.WindowLocation != null) { this.Location = Properties.Settings.Default.WindowLocation; } }
private void toolStripButton_solutionexplorer_Click(object sender, EventArgs e) { if (m_solutionExplorer == null) { m_solutionExplorer = new DummySolutionExplorer(solution); m_solutionExplorer.Show(dockPanel, DockState.DockLeft); } else { m_solutionExplorer.Close(); m_solutionExplorer = null; } }