private void button8_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in dataGridView1.SelectedRows) { string x = row.Cells[0].Value.ToString(); IITOperationStatus result = mainLibrary.AddFile(x); } MessageBox.Show("done"); }
public static void iTunesExport(string FilePath) { iTunesAppClass iTunes = new iTunesAppClass(); //iTunesApp iTunes = new iTunesApp(); IITLibraryPlaylist Tracks = iTunes.LibraryPlaylist; var AddVideo = Tracks.AddFile(FilePath); do { } while (AddVideo.InProgress == true); Marshal.FinalReleaseComObject(iTunes); }
static IITOperationStatus ProcessFile(string filepath) { return(myLib.AddFile(filepath)); }