private void listView1_DoubleClick(object sender, EventArgs e) { if (cBoxExifInfo.Enabled) { timer1.Enabled = false; ArrayList al = new ArrayList(); for (int i = 0; i < listView1.Items.Count; i++) { ListViewItem lvi = listView1.Items[i]; if (isPhoto(lvi.Text)) { FileInfo fi = new FileInfo(lvi.SubItems[1].Text + "\\" + lvi.Text); al.Add(fi); } } FileInfo[] fins = new FileInfo[al.Count]; for (int i = 0; i < al.Count; i++) { FileInfo tmpfi = (FileInfo)al[i]; fins.SetValue(tmpfi, i); } LargePictureForm lpf = new LargePictureForm(fins, listView1.SelectedItems[0].Index); lpf.Show(); } else { try { ListViewItem lvi = listView1.SelectedItems[0]; Process.Start(lvi.SubItems[1].Text + "\\" + lvi.Text); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }