private void addImageToolStripMenuItem_Click(object sender, EventArgs e) { FRMImage addimage = new FRMImage(); ListView.SelectedListViewItemCollection filename = this.musicListStore.SelectedItems; var trackxml = new XMLutils(appPath + "\\trackxml.xml"); addimage.Artist = filename[0].SubItems[4].Text; addimage.Album = filename[0].SubItems[5].Text; if (addimage.ShowDialog(this) == DialogResult.OK) { foreach (ListViewItem item in filename) { string fname = item.SubItems[1].Text + "\\" + item.SubItems[0].Text; var id3v2 = new ID3v2Tag(fname); var mytrack = new Track(); mytrack.Filename = fname; mytrack.Artist = id3v2.Artist; mytrack.Title = id3v2.Title; mytrack.Album = id3v2.Album; mytrack.Genre = id3v2.Genre; mytrack.Trackno = id3v2.TrackNumber.ToString(); mytrack.Year = id3v2.Year; if (addimage.Getimage() != null) { mytrack.coverimage = addimage.Getimage(); } Miscutils.Savev2tag(mytrack); //ReloadlistviewV2(fname); } } }