private void xpathLocatorMenuItem_Click(object sender, EventArgs e) { openFileDialog.Title = "Select XML file to load..."; DialogResult dialogResult = openFileDialog.ShowDialog(this); if (dialogResult == DialogResult.OK) { XPathForm xPathForm = new XPathForm(openFileDialog.FileName); xPathForm.ShowDialog(this); } }