private void menu_file_open_Click(object sender, EventArgs e) { DialogResult res; res = dialog_open.ShowDialog(this); if (res != DialogResult.OK) { return; } m_Report = null; try { m_Report = new ProfileReport(dialog_open.FileName); } catch (System.Exception ex) { MessageBox.Show("Error opening or parsing file: " + ex.Message); } UpdateListView(); }