private void FilteredFiles_MouseDoubleClick(object sender, MouseEventArgs e) { var selectedItem = FilteredFiles.FocusedItem; FileView view = new FileView(selectedItem.Text); view.Show(); }
private void ToolStripMenuItemOpen_Click(object sender, EventArgs e) { var selectedItem = FilteredFiles.SelectedItems[0]; FileView view = new FileView(selectedItem.Text); view.Show(); }