private void btn_ok_Click(object sender, EventArgs e) { Hide(); MpeStartupResult = (MpeStartupResult)listView.SelectedItems[0].Tag; if (MpeStartupResult == MpeStartupResult.MruFile) { MpeStartupResultParam = listView.SelectedItems[0].ToolTipText; } DialogResult = DialogResult.OK; Close(); }