private void importSettingsToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog openDialog = new OpenFileDialog(); openDialog.Filter = "XML Files|*.xml"; openDialog.FileName = "Sessions.XML"; openDialog.CheckFileExists = true; openDialog.InitialDirectory = Application.StartupPath; if (openDialog.ShowDialog() == DialogResult.OK) { SessionTreeview.ImportSessionsFromXml(openDialog.FileName); m_Sessions.LoadSessions(); } }