private void ResultsListBox_MouseDoubleClick(object sender, MouseEventArgs e) { if (resultsListBox.SelectedItem == null) { return; } Legacy selectedLegacy = resultsWithId[resultsListBox.SelectedItem.ToString()]; LegacyViewer ev = new LegacyViewer(selectedLegacy.Copy(), null, null); ev.Show(); }